CloudPDF
DocsPricing
Start building

Delete tenant

DELETE/v1/tenants/{tenantId}v3.0.0-next.9

Delete a tenant and everything under it.

Destroys the tenant and everything in its namespace — documents, layers, stored bytes, audit history. Irreversible.

Self-hosted surface. On managed CloudPDF this is operated by the platform — your account is already a tenant. Start at Tenant documents.

Authentication#

API token

The deployment's static root credential (CLOUDPDF_API_AUTH_TOKENS), valid on every surface.

Parameters#

tenantIdpathstringrequired

SDK examples#

The selected SDK is remembered across the API reference. Values are examples; replace them with identifiers and input from your application.

import { CloudPDFClient } from "@cloudpdf/sdk";

const client = new CloudPDFClient({
  baseUrl: "https://yourhost.com/path/to/api",
  token: "<token>",
});

await client.tenants.delete({
  tenantId: "tenantId"
});

Responses#

204No content

No response body.

404Not found
application/jsonTenantsDeleteResponse
errorobject
codestring
messagestring
defaultError
application/jsonAdminErrorPayload
errorobject
codestring
messagestring