Skip to content

DeleteManager

Description: Deletes a manager account by ID. A brand admin may delete only a non-super manager in the same brand; a super admin may delete managers across brands.

Access Control

šŸ›”ļø Access Level Required: SESSION_ADMIN or SESSION_MANAGER

System managers id=1 (hidden recovery) and id=2 (default super admin) cannot be deleted.


Request Parameters

Name Type Required Description
id int Yes ID of the manager to delete

Request Example

{
  "id": 42
}

Response Example

{
  "data": "OK"
}

āš ļø If the deletion fails or the ID does not exist, an error response will be returned:

{
  "error": "DELETE_MANAGER_ERROR"
}