Stashbase
Secrets

Bulk delete

Delete multiple secrets.

POST
/v1/projects/{project_identifier}/environments/{environment_identifier}/secrets/delete

Delete multiple secrets.

Path Parameters

project_identifier*string

The name or ID of the project.

environment_identifier*string

The name or ID of the environment.

Request Body

application/json

The list of secrets (keys) to delete.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/projects/string/environments/string/secrets/delete" \  -H "Content-Type: application/json" \  -d '[    "string"  ]'
{
  "deleted_count": 10,
  "not_found_secrets": [
    "OPENAI_API_KEY",
    "OPENAI_API_SECRET"
  ]
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}