Deleting a Model Endpoint using API

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

Delete the Model Endpoint deployed above, using the API.
curl -v  -H "Content-Type: application/json" -H "Authorization: 
Bearer ${CDP_TOKEN}" 
"https://${DOMAIN}/api/v1alpha1/deleteEndpoint" -d 
'{"namespace": "serving-default", "name": "[***ENDPOINT_NAME***]"}'