Delete a rotated secret key

Deletes a rotated secret key.

Requirements:

  • Secret key prefix must be in format sec-c-{5chars} (exactly 5 alphanumeric characters)
  • Requested secret key must already have expiration date
Path Parameters
keysetId string REQUIRED

a string to be decoded into a number

secretKeyPrefix Secret Key Prefix REQUIRED

Possible values: Value must match regular expression ^sec-c-[a-zA-Z0-9]{5}$

prefix in format sec-c-{5chars}. Don't provide the full secret key.

prefix in format sec-c-{5chars}. Don't provide the full secret key.

Header Parameters
PubNub-Version string REQUIRED

Possible values: [2025-11-01]

Responses
200

Success

Schema OPTIONAL
success boolean
400

Bad Request Error

Schema OPTIONAL
statusCode number
error string

Possible values: [BadRequest]

message string[]
401

UnauthorizedError

Schema OPTIONAL
statusCode number
error string

Possible values: [Unauthorized]

message string[]
403

ForbiddenError

Schema OPTIONAL
statusCode number
error string

Possible values: [Forbidden]

message string[]
404

NotFoundError

Schema OPTIONAL
statusCode number
error string

Possible values: [NotFound]

message string[]
500

InternalErrorError

Schema OPTIONAL
statusCode number
error string

Possible values: [InternalError]

message string[]
* required
PubNub-Version*
Type: string
Possible values: [2025-11-01]
* required
keysetId*
Type: string
secretKeyPrefix*
Type: string
prefix in format sec-c-{5chars}. Don't provide the full secret key.
success
Type: boolean
Example Response
{
  "success": true
}
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"BadRequest"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"Unauthorized"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"Forbidden"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"NotFound"
message
Type: array
Array items:
items
Type: string
statusCode
Type: number
error
Type: string
Enum (1 values)
View all values
"InternalError"
message
Type: array
Array items:
items
Type: string