Deleting a deployment
When you are done with a deployment, it is a best practice to delete it to free up resources. You can delete a deployment from a deployment space, or programmatically, using the Python client or Watson Machine Learning APIs.
Deleting a deployment from a space
To remove a deployment:
- Open the Deployments page of your deployment space.
- Choose Delete from the action menu for the deployment name.
Deleting a deployment using the Python client
Use the following method to delete the deployment.
SUCCESS message. To check that the deployment was removed, you can list the deployments and make sure it is no longer listed.
---- ---- ----- ------- ------------- GUID NAME STATE CREATED ARTIFACT_TYPE ---- ---- ----- ------- -------------
Deleting a deployment using the REST API
Use the Delete method for deleting a deployment:
curl --location --request DELETE 'https://us-south.ml.cloud.ibm.com/ml/v4/deployments/:deployment_id?space_id=<string>&version=2020-09-01'