Skip to main content
Use this endpoint to permanently remove a team member from your Shogun account. Once deleted, the member can no longer log in or access the dashboard. This action cannot be undone — if you need to re-add the person in the future, you must invite them again using Add Member. Note that you cannot delete your own account using this endpoint.

Endpoint

POST /api/v1/auth/web/delete_member

Authentication

This endpoint requires a valid Dashboard JWT. Pass the token in the Authorization header:
Authorization: Bearer <access_token>

Request Body

user_id
string (UUID)
required
The unique identifier of the team member you want to remove. Use Fetch Members to look up member IDs. You cannot supply your own user_id.

Response

{
  "status": true,
  "response_code": "00",
  "message": "Team member deleted successfully",
  "data": {}
}

Example

curl -X POST https://baasapi.payrepmfb.com/api/v1/auth/web/delete_member \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }'
Deleting a team member is permanent and takes effect immediately. Their active sessions are invalidated and they lose all access to the account. If you only want to temporarily block a member, consider using Update Member Status instead.