---
parser: v2
auto_validation: true
time: 15
tags: [tutorial>beginner, topic>machine-learning, topic>artificial-intelligence, topic>cloud, software-product>sap-business-technology-platform, software-product>sap-ai-services, software-product>data-attribute-recommendation]
primary_tag: topic>machine-learning
author_name: Juliana Morais
author_profile: https://github.com/Juliana-Morais
slug: cp-aibus-dar-classify-delete
canonical_url: https://developers.sap.com/tutorials/cp-aibus-dar-classify-delete
---

# Use Data Attribute Recommendation to Classify Records, Delete Model and Dataset
<!-- description --> Classify data records you uploaded to Data Attribute Recommendation using your machine learning model.

## You will learn
  - How to classify records using your Data Attribute Recommendation machine learning model
  - How to undeploy and delete your model
  - How to delete datasets and dataset schemas

## Intro
Based on your deployed machine learning model you can now classify records. For more information, see [Data Attribute Recommendation help portal documentation](https://help.sap.com/docs/Data_Attribute_Recommendation). For further definition of specific terms, see [Concepts](https://help.sap.com/docs/Data_Attribute_Recommendation/105bcfd88921418e8c29b24a7a402ec3/cff2de73bc9c4625b35eb036439ae70a.html).

Business Use Case: After you upload data and train a machine learning model using Data Attribute Recommendation, you will be able to classify the product data. In this tutorial, you will focus on product data classification, including options to undeploy the model, delete dataset and dataset schemas.

---

### Classify records


To classify records, you need to send an inference request to your model.

**Open** Postman and make sure that your `Data Attribute Recommendation environment` is selected.

Expand the subfolder `Classify Records` and select the request `Send inference request`. Click on the `Body` tab to see the sample data that you will send to the service.

The sample data is a list of products and their product information, including `description`, `manufacturer` and `price`. Based on these information three levels of product categories shall be predicted by the service.

Click **Send** to send an inference request to your model.

![Inference Request](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/inference-request.png)

In the response, you find the predictions of the model. This includes the values that are predicted for each level of product category for each product that was sent to the service along with their probabilities. The probability describes how certain the model is about its prediction. If the probability is close to 1, the model is very certain.

![Inference Request Response](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/inference-request-response.png)

You have successfully classified records using your machine learning model.



### Undeploy your model


Now that you have learned the whole process about how to use Data Attribute Recommendation, it's time to clean up.

First, undeploy your model. For that, expand the subfolder `Undeploy Model` and select the request `Undeploy Model by id`. Click **Send** to undeploy the model.

![Undeploy Model](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/undeploy-model.png)

There is no actual content in the response. Instead you can tell by the http-status whether the operation was successful. If the status says `204 No Content`, the model is successfully undeployed.

![Undeploy Model Status](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/undeploy-model-status.png)

You have successfully undeployed your model, but the model is not yet deleted. Instead it is not in production which means that you cannot make inference requests. You can deploy it again at any time.



### Delete your model


Once undeployed, you can delete the model.

For that, expand the subfolder `Delete Trained Model` and select the request `Delete previously trained Model`. Click **Send** to send a deletion request for your model.

![Delete Model](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/delete-model.png)

As explained in the previous step, you can tell by the `http-status` whether the operation was successful. If the status is `204 No Content`, the model is successfully deleted.



### Delete your training job


Now that the model is deleted, you can delete the training job that created the model.

Select the request `Delete previously trained Job` and click **Send** to delete the job.

![Delete Training Job](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/delete-training-job.png)

Again, the operation was successful if you receive the status `204 No Content`.



### Delete your dataset


To clear the uploaded data, you can now delete the dataset as the associated training job is already deleted.

Expand the subfolder `Delete Data` and select the request `Delete previously created Dataset`. Click **Send** to delete it.

![Delete Dataset](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/delete-dataset.png)

If you receive the status `204 No Content`, you have successfully deleted the dataset.



### Delete your dataset schema


If you do not need your dataset schema anymore, you can delete it as well.

Select the request `Delete previously created Dataset Schema` and click **Send** to delete the schema.

![Delete Dataset Schema](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/cp-aibus-dar-classify-delete/delete-dataset-schema.png)

If you receive the status `204 No Content`, you have successfully deleted the dataset schema.



### Test yourself



