Environments

Delete environment

delete/api/v1/projects/{projectId}/environments/{id}

Request

  • Base URL
    https://us.infisical.com
  • URL
    https://us.infisical.com/api/v1/projects/{projectId}/environments/{id}
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

The ID of the project to delete the environment from.

idstring required

The ID of the environment to delete.

Query parameters

hardDelete'true' | 'false'

When true, permanently removes the environment. When false or omitted, the environment is soft-deleted (preserved and scheduled for permanent deletion after a grace period) and hidden from subsequent reads.

Response

Default Response

messagestring required
projectIdstring required

Changes

No recorded changes to this operation across all 65 revisions of this API.