Delete Lifecycle Stage

JFrog REST APIs

Content Type
REST API

Description: Deletes the specified lifecycle stage from the JFrog platform.

Important

You cannot delete a stage that is in use by a lifecycle.

Since: 7.125.4

Usage: DELETE https://{{artifactory-host}}/access/api/v2/stages/{{stage-name}}

Query Parameters (optional):

Parameter

Type

Description

project_key

string

The project key with which the stage is associated.

Sample Request:

DELETE 'https://{host}.jfrog.io/access/api/v2/stages/production-us-east?project_key=mobile-app'
Authorization: ••••••

Response body (success): {empty}

Response body (error):

{
  "errors": [
    {
      "message": "Stage 'production-us-east' is in use and cannot be deleted."
    }
  ]
}

Status Codes:

Code

Description

204

Deleted

401

Bad Credentials

403

Permission Denied

404

Not Found

409

Conflict