Docs

deleteAllowlistIdentifier()

Deletes an AllowlistIdentifier.

function deleteAllowlistIdentifier(allowlistIdentifierId: string): Promise<AllowlistIdentifier>
  • Name
    allowlistIdentifierId
    Type
    string
    Description

    The ID of the allowlist identifier to delete.

const allowlistIdentifierId = 'alid_123'

const response =
  await clerkClient.allowlistIdentifiers.deleteAllowlistIdentifier(allowlistIdentifierId)

console.log(response)
/*
DeletedObject {
  object: 'allowlist_identifier',
  id: 'alid_123',
  slug: null,
  deleted: true
}
*/

Backend API (BAPI) endpoint

This method in the SDK is a wrapper around the BAPI endpoint DELETE/allowlist-identifiers/{identifier_id}. See the BAPI reference for more information.

Feedback

What did you think of this content?

Last updated on