Deletes a tenant
DELETEhttps://apis.<domain>/iam/tenants/:id
Deletes a tenant from any resources tagged with it.
Also deletes this tenant from any tenant list in any policy statements. If the resulting tenant list for a given statement is empty, it is deleted. If the resulting policy has no statements, it is also deleted.
Authorization Action:
iam:tenants:delete
Request
Path Parameters
id stringrequired
ID of the tenant.
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (auto)
Schema
objectobject
Example:
{"name":"My Custom Tenant","id":"custom-tenant"}{
"name": "My Custom Tenant",
"id": "custom-tenant"
}
An unexpected error response.
- application/json
- Schema
- Example (auto)
Schema
codeinteger<int32>
messagestring
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://apis.<domain>/iam/tenants/:id");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());