

# Delete a data stream
<a name="delete-data-streams-method"></a>

 When a property is removed from an asset model, Amazon IoT SiteWise deletes the properties and their data streams from all assets that are managed by the asset model. It also deletes all properties and their data streams of an asset when the asset is deleted. If a data stream data must be preserved, it must be disassociated from the asset property before it is deleted. 

**Warning**  
 When a property is deleted from an asset, the associated data stream is also deleted. To preserve the data stream, disassociate it from the asset property first, before deleting the property from the asset model, or deleting the asset. 

------
#### [ Console ]

Use the Amazon IoT SiteWise console to disassociate your data stream from an asset property.

**To delete a data stream (console)**

1. <a name="sitewise-open-console"></a>Navigate to the [Amazon IoT SiteWise console](https://console.amazonaws.cn/iotsitewise/).

1.  In the navigation pane, choose **Data streams**. 

1.  Choose a data stream by filtering on data stream alias. 

1.  Select the data stream to delete. You may select multiple data streams. 

1.  Choose the **Delete** button to delete the data stream. 

------
#### [ Amazon CLI ]

 Use the [ DeleteTimeSeries](https://docs.amazonaws.cn/iot-sitewise/latest/APIReference/API_DeleteTimeSeries.html) API to delete a specific data stream, by its alias. 

```
    aws iotsitewise delete-time-series \ 
        --alias <data-stream-alias>
```

------