For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete user

Permanently deletes a user account from the system. This operation is irreversible and removes all user data associated with the account. Use with caution.

Endpoint

DELETE/v2/user/{id}

Link

Request

Authentication

An API key is required for authentication. Include it in the Authorization header.

  • Header: Authorization

  • Value: Your API key token

HTTP Method & URL

  • Method: DELETE

  • URL: https://stagep.tst-apidmndelss.com/v2/user/{id}

Path Parameters

Parameter
Type
Description
Required
Example

id

string

Unique identifier of the user to delete.

Yes

user_abc123def

Query Parameters

Parameter
Type
Description
Required
Example

customerId

string

Customer identifier (for verification/context).

No

cust_789xyz

Headers

Key
Value
Required

Authorization

Bearer <JWT>

Yes

Accept

application/json

Yes


Response (200 OK)

Returns a confirmation object indicating the success or failure of the deletion operation.

Response Fields

Field
Type
Description
Example

success

boolean

Operation status.

true

message

string

Detailed result message.

User deleted successfully

Example Response:


Examples

Basic User Deletion Request (cURL)

User Deletion with Customer Context


Error Responses

  1. User Not Found:

  2. Unauthorized:

  3. Customer Context Mismatch:

  4. User Cannot Be Deleted (e.g., active sessions):


Notes

Deletion Behavior

  • Permanent operation - cannot be undone

  • Removes user account and associated data

  • May preserve audit trails for compliance purposes

  • Some systems may implement soft delete (archiving) instead of permanent deletion

Security Considerations

  • Requires appropriate administrative privileges

  • Customer ID parameter may be used for additional verification

  • Some users (e.g., system administrators) may be protected from deletion

Best Practices

  • Always verify the user ID before deletion

  • Use the customerId parameter for additional context/verification

  • Consider deactivating users instead of deleting when possible

  • Maintain backup of critical user data before deletion

Common Use Cases:

  • Removing inactive or duplicate accounts

  • GDPR compliance and right-to-be-forgotten requests

  • Cleaning up test or temporary accounts

  • Terminating employee access in enterprise systems

Alternative to Deletion:

  • Consider updating user status to BANNED or REJECTED instead of deletion

  • Deactivation may be preferable for historical reporting purposes

Pre-deletion Checks:

  • Ensure no pending transactions or activities

  • Verify user is not associated with critical business processes

  • Confirm proper authorization for deletion operation

Real response:

Last updated