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:
AuthorizationValue: Your API key token
HTTP Method & URL
Method:
DELETEURL:
https://stagep.tst-apidmndelss.com/v2/user/{id}
Path Parameters
id
string
Unique identifier of the user to delete.
Yes
user_abc123def
Query Parameters
customerId
string
Customer identifier (for verification/context).
No
cust_789xyz
Headers
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
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
User Not Found:
Unauthorized:
Customer Context Mismatch:
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
customerIdparameter for additional context/verificationConsider 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
BANNEDorREJECTEDinstead of deletionDeactivation 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

