Delete stuff

May 21, 2024

You can now delete models, versions, and deployments using the web or the HTTP API.

Deleting models

You can delete a model directly from the web on the model settings page. You can also delete a model programmatically using the models.delete HTTP API.

There are some restrictions on which models you can delete:

  • You can only delete models you own.
  • You can only delete private models.
  • You can only delete models that have no versions associated with them. You'll need to delete any versions first before deleting the model.

Deleting model versions

You can delete a model version directly from the web using the nav in the header of the model versions page. You can also delete a model version programmatically using the versions.delete HTTP API.

The following restrictions apply to deleting versions:

  • You can only delete versions from models you own.
  • You can only delete versions from private models.
  • You cannot delete a version if someone other than you has run predictions with it.
  • You cannot delete a version if it is being used as the base model for a fine tune/training.
  • You cannot delete a version if it has an associated deployment.
  • You cannot delete a version if another model version is overridden to use it.

Deleting deployments

You can delete a deployment directly from the web on the deployment settings page. You can also delete a deployment programmatically using the deployments.delete HTTP API.

The following restriction applies to deleting deployments:

  • You can only delete deployments that have been offline and unused for at least 15 minutes.