Skip to main content
DELETE
/
v1
/
subscriptions
/
customers
/
{customer_id}
JavaScript
import Hercules from '@usehercules/sdk';

const client = new Hercules({
  apiVersion: '2025-12-09',
  apiKey: process.env['HERCULES_API_KEY'], // This is the default and can be omitted
});

await client.beta.subscriptions.customers.delete('customer_id');

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header as: Bearer

Path Parameters

customer_id
string
required

The unique identifier of the customer

Response

204

Customer successfully deleted