Delete Tenant
delete
https://api.serialized.io
/tenants/{tenantId}
Delete Tenant

Example

cURL
Java
C#
Node
1
curl -i \
2
--header "Serialized-Access-Key: <YOUR_ACCESS_KEY>" \
3
--header "Serialized-Secret-Access-Key: <YOUR_SECRET_ACCESS_KEY>" \
4
-X DELETE https://api.serialized.io/tenants/e9ef574f-4563-4d56-ad9e-0a2d5ce42004
Copied!
1
import javax.ws.rs.client.Client;
2
import javax.ws.rs.client.ClientBuilder;
3
4
Client client = ClientBuilder.newClient();
5
URI apiRoot = URI.create("https://api.serialized.io");
6
7
Response response = client.target(apiRoot)
8
.path("tenants")
9
.path("e9ef574f-4563-4d56-ad9e-0a2d5ce42004")
10
.request()
11
.header("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
12
.header("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>")
13
.delete();
Copied!
1
using System;
2
using System.Collections.Generic;
3
using RestSharp;
4
5
var client = new RestClient("https://api.serialized.io");
6
7
var request = new RestRequest("tenants/{tenantId}", Method.DELETE)
8
.AddUrlSegment("tenantId", "e9ef574f-4563-4d56-ad9e-0a2d5ce42004")
9
.AddHeader("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
10
.AddHeader("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>");
11
12
var response = client.Execute(request);
Copied!
1
const axios = require("axios");
2
3
const client = axios.create({
4
baseURL: "https://api.serialized.io",
5
headers: {"Serialized-Access-Key": "<YOUR_ACCESS_KEY>"},
6
headers: {"Serialized-Secret-Access-Key": "<YOUR_SECRET_ACCESS_KEY>"}
7
});
8
9
client.delete("tenants/e9ef574f-4563-4d56-ad9e-0a2d5ce42004")
10
.then(function (response) {
11
// Handle response
12
})
13
.catch(function (error) {
14
// Handle error
15
});
Copied!
Last modified 9mo ago