iSpring Learn API Documentation SOAP API Managing Departments Current: Deleting a Department Deleting a Department AVAILABLE WITH BUSINESS SUBSCRIPTIONMethod: removeDepartment You can't delete a department if:it contains users,it is managed by Department Administrator or Author,it is the root one. Permissions to Run the RequestAccount Owner, Account Administrators, or custom roles. ParametersParameterTypeDescriptioncredentials (required)credentialsRead the description of the Credentials object.departmentId (required)stringThe ID of the department that you want to remove.Return ValueParameterTypeDescriptionsuccessbool'True' if the specified department has been removed.Possible ErrorsErrorDescriptionPermission deniedYou have no permissions to delete departments.Wrong parametersThe department with the specified ID was not found or it is the root one.Sample Call <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/" xmlns="https://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <RemoveDepartmentRequest> <credentials> <accountUrl>https://myaccount.ispringlearn.com</accountUrl> <email>email@email.com</email> <password>password</password> </credentials> <departmentId>string</departmentId> </RemoveDepartmentRequest> </SOAP-ENV:Body> </SOAP-ENV:Envelope> XML Sample Response <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/" xmlns="https://ispringlearn.com/go/services/api/soap"> <SOAP-ENV:Body> <successResult> <success>true</success> </successResult> </SOAP-ENV:Body> </SOAP-ENV:Envelope> XML ×