deleteTenantWithRequest method
Future<ClientResponse<void, Errors> >
deleteTenantWithRequest(
- String tenantId,
- TenantDeleteRequest request
Deletes the tenant based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated with the tenant and everything under the tenant (applications, users, etc).
@param {String} tenantId The Id of the tenant to delete. @param {TenantDeleteRequest} request The request object that contains all the information used to delete the user. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<void, Errors>> deleteTenantWithRequest(
String tenantId, TenantDeleteRequest request) {
return _start<void, Errors>()
.withUri('/api/tenant')
.withUriSegment(tenantId)
.withJSONBody(request)
.withMethod('DELETE')
.go();
}