

We are no longer updating the Amazon Machine Learning service or accepting new users for it. This documentation is available for existing users, but we are no longer updating it. For more information, see [ What is Amazon Machine Learning](https://docs.aws.amazon.com/machine-learning/latest/dg/what-is-amazon-machine-learning.html).

# Deleting Objects
<a name="deleting-objects"></a>

When you no longer need your datasources, ML models, evaluations, and batch predictions, you can delete them. Although there is no additional cost for keeping Amazon ML objects other than batch predictions after you are done with them, deleting objects keeps your workspace uncluttered and easier to manage. You can delete single or multiple objects using the Amazon Machine Learning (Amazon ML) console or the API. 

**Warning**  
When you delete Amazon ML objects, the effect is immediate, permanent, and irreversible.

![Objects table showing five completed items with names, types, IDs, status, and timestamps.](http://docs.aws.amazon.com/machine-learning/latest/dg/images/image58b.png)


## Deleting Objects (Console)
<a name="console-delete"></a>

You can use the Amazon ML console to delete objects, including models. The procedure that you use to delete a model depends on whether you're using the model to generate real-time predictions or not. To delete a model used to generate real-time predictions, first delete the real-time endpoint.<a name="delete-object"></a>

**To delete Amazon ML objects (console)**

1. Sign in to the AWS Management Console and open the Amazon Machine Learning console at [https://console.aws.amazon.com/machinelearning/](https://console.aws.amazon.com/machinelearning/).

1. Select the Amazon ML objects that you want to delete. To select more than one object, use the SHIFT key. To deselect all selected objects, use the ![Blue rectangular button with minus sign icon, indicating a removal or subtraction action.](http://docs.aws.amazon.com/machine-learning/latest/dg/images/deselect-all.png) or ![Blue checkmark icon indicating a completed or selected state.](http://docs.aws.amazon.com/machine-learning/latest/dg/images/deselect-all2.png) buttons.

1. For **Actions**, choose **Delete**.

1. In the dialog box, choose **Delete** to delete the model.<a name="delete-realtime-object"></a>

**To delete an Amazon ML model with a real-time endpoint (console)**

1. Sign in to the AWS Management Console and open the Amazon Machine Learning console at [https://console.aws.amazon.com/machinelearning/](https://console.aws.amazon.com/machinelearning/).

1. Select the model that you want to delete.

1. For **Actions**, choose **Delete real-time endpoint**.

1. Choose **Delete** to delete the endpoint.

1. Select the model again.

1. For **Actions**, choose **Delete**.

1. Choose **Delete** to delete the model.

## Deleting Objects (API)
<a name="api-delete"></a>

You can delete Amazon ML objects using the following API calls:
+ `DeleteDataSource` - Takes the parameter `DataSourceId`.
+ `DeleteMLModel` - Takes the parameter `MLModelId`.
+ `DeleteEvaluation` - Takes the parameter `EvaluationId`.
+ `DeleteBatchPrediction` - Takes the parameter `BatchPredictionId`.

For more information, see the [Amazon Machine Learning API Reference](https://docs.aws.amazon.com/machine-learning/latest/APIReference/).