If you're using our SDK to manage user data, this guide explains how to securely delete a user account through the API. Always ensure compliance with privacy regulations when implementing deletion operations.

Steps to Delete a User

  1. Authenticate with valid API credentials before making requests
  2. Use the DELETE method on the endpoint /api/v1/users/{userId}
  3. Include required parameters in the request headers:
    • Authorization: Bearer <token>
    • Content-Type: application/json
  4. Confirm deletion via the SDK's built-in confirmation callback

⚠️ Important: Deleting a user is irreversible. Refer to our SDK documentation center for full implementation details and best practices.

delete_user

Technical Considerations

  • Data is permanently removed from all systems
  • Audit logs may retain records for compliance purposes
  • Success response: HTTP 204 No Content
  • Error handling: Check X-Error-Code in headers for specific issues

For advanced usage patterns, explore our SDK API reference to understand additional parameters and security headers. Always validate user input and implement proper access controls.