POST /api/tenants/{id}/delete

Deletes a tenant along with all related Azure resources.

Remarks

The method returns HTTP 202 and a reference to the job in the LOCATION header.

Request

Parameter Description Additional information
id The id of the tenant to delete. Define this parameter in the url.
options Tenant delete options. Define this parameter in the body.

Example

{
  "Backup": true,
  "CallbackUrl": "sample string 2"
}

Response

Returns a job with information about the progress of the delete operation. Further calls to the jobs API can be made to get updated information about the status of the operation.

Example

{
  "Id": "2b37b24b-a94f-4d06-8b69-16db96441827",
  "Progress": 33,
  "Name": "Create Site",
  "Status": "Started",
  "Log": "Creating site...",
  "CallbackUrl": "https://mycallbackhandler.com/handle/site",
  "Jobs": 9,
  "CompletedJobs": 3,
  "StartedAt": "2021-09-16T07:32:00.9646561Z",
  "EndedAt": null,
  "Duration": "1.15:59:36.8433172",
  "Timestamp": "20210916073200964",
  "Tenant": null,
  "CreatedBy": {
    "Id": -2,
    "Email": "Api"
  },
  "HasEnded": false
}