Delete User
Permanently delete a user and all their data from Alarik.
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/admin/users/:userId | DELETE | Yes |
Permanently deletes a user and all associated data.
This action is irreversible. All user data including buckets, objects, and access keys will be permanently deleted.
Path Parameters
userId
string (UUID) required
The unique identifier of the user to delete.
Response
Returns 204 No Content on success.
Errors
| Status | Reason |
|---|---|
400 | Invalid user ID format |
403 | Cannot delete yourself |
404 | User not found |
What Gets Deleted
When a user is deleted, the following are also removed:
- All buckets owned by the user (including files on disk)
- All objects within those buckets
- All access keys associated with the user
- Related cache entries