Dec 2025 - New! Caching input tokens unlocks immediate, automatic ~30% credit savings on supported models
cURL
curl --request DELETE \ --url http://localhost:3000/api/admin/user/{userId} \ --header 'x-access-token: <api-key>'
{ "success": true, "message": "User deleted successfully" }
Permanently removes a user from the system. This is an admin-only operation.
JWT token passed in x-access-token header
The unique identifier of the user to delete (MongoDB ObjectId)
User successfully deleted
Indicates if the operation was successful
true
Success message
"User deleted successfully"
Was this page helpful?