You can delete a user with the deleteUser method.
Permissions to run the request: Account Owner, Administrators, Department Administrators.
Department Administrators can delete users belonging only to the department they manage and its daughter departments.
|credentials (required)||credentials||Read the description of the Credentials object.|
|userId (required)||string||ID of the user you want to delete.|
When a request is processed successfully, the system returns an object with the following properties:
|success||bool||True if the user has been deleted|
|Unknown user||The user with the given ID cannot be found.|
|Permission Denied||No permissions to delete the specified user|