For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/delete-a-keyset.md. Documentation index: https://www.pubnub.com/llms-full.txt.

Delete a keyset

DELETE 

/v2/keysets/:id

Deletes a keyset by its ID. This is a soft delete: the keyset is marked as deleted and is no longer returned by the API, but no operation in this API or the CLI restores it, so treat it as irreversible. Its publish, subscribe and secret keys stop being managed through this API. Apps and other keysets are not affected. Requires keyset:write permission on the keyset.

Request​

Example
{
  "success": false
}
Example
{
  "statusCode": 0,
  "error": "BadRequest",
  "message": [
    "string"
  ]
}
Example
{
  "statusCode": 0,
  "error": "Unauthorized",
  "message": [
    "string"
  ]
}
Example
{
  "statusCode": 0,
  "error": "Forbidden",
  "message": [
    "string"
  ]
}
Example
{
  "statusCode": 0,
  "error": "InternalError",
  "message": [
    "string"
  ]
}