Delete a secret
Deletes a secret by name for the current account and environment. The request succeeds when the name is already absent; in that case, deleted is false and id is empty.
Headers
- Type: stringIdempotency
- Key max length:255Unique key used to safely retry the same store or delete request. Reuse a key only when retrying an identical request.
Body·
required
application/json
Parameters for deleting a secret.
- Type: stringnamemin length:1max length:255required
Exact name of the secret to delete.
- Type: nullablescopeProperties: 1
Account scope. Omit this field, use
null, or omittypeto use the current account.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/v1/secrets/delete
curl https://api.paypercut.io/v1/secrets/delete \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "fulfillment-api-token",
"scope": {
"type": "account"
}
}'
{
"id": "string",
"object": "secret",
"deleted": true
}
