Skip to main content

Cancel a license

danger

Deprecated. Use cancel subscription.

Licenses can be cancelled with their UUIDs.

import { initSalable } from '@salable/node-sdk';

const salable = initSalable('your-salable-api-key', 'v3');
// cancel a single license
await salable.licenses.cancel('your-license-uuid');
// cancel many licenses at once
await salable.licenses.cancelMany({uuids: [
'your-license-uuid-1',
'your-license-uuid-2',
]});