Delete Tenant

delete
Delete Tenant

https://api.serialized.io/tenants/{tenantId}
This endpoint permanently deletes a Tenant and all its data, including all Events, Projections, and pending Reactions.
Request
Response
Path Parameters
tenantId
optional
string
ID of the Tenant to delete
200: OK
Tenant successfully deleted.
404: Not Found
Could not find the given Tenant.

Example

cURL
Java
C#
Node
curl -i \
--header "Serialized-Access-Key: <YOUR_ACCESS_KEY>" \
--header "Serialized-Secret-Access-Key: <YOUR_SECRET_ACCESS_KEY>" \
-X DELETE https://api.serialized.io/tenants/e9ef574f-4563-4d56-ad9e-0a2d5ce42004
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
Client client = ClientBuilder.newClient();
URI apiRoot = URI.create("https://api.serialized.io");
Response response = client.target(apiRoot)
.path("tenants")
.path("e9ef574f-4563-4d56-ad9e-0a2d5ce42004")
.request()
.header("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.header("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>")
.delete();
using System;
using System.Collections.Generic;
using RestSharp;
var request = new RestRequest("tenants/{tenantId}", Method.DELETE)
.AddUrlSegment("tenantId", "e9ef574f-4563-4d56-ad9e-0a2d5ce42004")
.AddHeader("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.AddHeader("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>");
var response = client.Execute(request);
const axios = require("axios");
const client = axios.create({
baseURL: "https://api.serialized.io",
headers: {"Serialized-Access-Key": "<YOUR_ACCESS_KEY>"},
headers: {"Serialized-Secret-Access-Key": "<YOUR_SECRET_ACCESS_KEY>"}
});
client.delete("tenants/e9ef574f-4563-4d56-ad9e-0a2d5ce42004")
.then(function (response) {
// Handle response
})
.catch(function (error) {
// Handle error
});