Deletes a baseline based on its ID. You can delete a baseline only if the nodes in the baseline does not have ancestor nodes. You can call the UpdateBaseline operation to delete the relationships between the nodes and their ancestor nodes.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDeleteBaseline

The operation that you want to perform. Set the value to DeleteBaseline.

BaselineIdLongYes1234

The ID of the baseline.You can call the ListBaselines operation to obtain the ID.

ProjectIdLongYes10000

The ID of the workspace to which the baseline belongs. You can call the ListBaselines operation to obtain the ID.

Response parameters

ParameterTypeExampleDescription
SuccessBooleantrue

Indicates whether the request was successful.

  • true
  • false
ErrorCodeString1031203110000

The error code returned.

ErrorMessageStringBaseline deletion failed with nodes dependent on baseline

The error message returned.

HttpStatusCodeInteger200

The HTTP status code returned.

DataBooleantrue

Indicates whether the deletion was successful.

RequestIdString0000-ABCD-EF****

The request ID. You can use the ID to query logs and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteBaseline
&BaselineId=1234
&ProjectId=10000
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeleteBaselineResponse>
    <Success>true</Success>
    <ErrorCode>1031203110000</ErrorCode>
    <ErrorMessage>Baseline deletion failed with nodes dependent on baseline</ErrorMessage>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>true</Data>
    <RequestId>0000-ABCD-EF****</RequestId>
</DeleteBaselineResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Success" : true,
  "ErrorCode" : "1031203110000",
  "ErrorMessage" : "Baseline deletion failed with nodes dependent on baseline",
  "HttpStatusCode" : 200,
  "Data" : true,
  "RequestId" : "0000-ABCD-EF****"
}

Error codes

For a list of error codes, see Service error codes.