Delete Sub-user
Last updated Changelog
http
DELETE /crates/{handle}/logins/{login}
Deletes the sub-user. The folders it could use stay, with their files. The master login can’t be deleted (400).
Response
json
{ "message": "Sub-user deleted. Its folders stay." }
Errors
Besides the errors any endpoint can return:
| Status | Code | When |
|---|---|---|
| 400 | invalid_state |
A crate’s master login can’t be deleted. |
| 400 | operation_rejected |
The server behind the API (mail, database, storage) or the registrar refused the operation. error says why. |
| 403 | scope_denied |
This API key does not have Crates write access for this crate. |
| 403 | service_inactive |
This crate is not active. |
| 404 | not_found |
Crate not found. Login not found. |
| 502 | upstream_unavailable |
This crate has no storage node. |