Deleting a Model deployment using API

Consider the following instruction to delete a Model Deployment using API.

Delete the Model Deployment using the API.
curl -v -X DELETE -H "Authorization: Bearer ${AWC_TOKEN}" "https://${DOMAIN}/api/v1/deployments/[***DEPLOYMENT_ID***]"

A deployment that an Cloudera AI Gateway and Inference backend still references cannot be deleted. Remove the backend first.