# Chapter 3: Operation Manual ## Data Maintenance ### Data Deletion Users can delete data that meet the deletion condition in the specified timeseries by using the [DELETE statement](/#/Documents/latest/chap5/sec1). When deleting data, users can select one or more timeseries paths, prefix paths, or paths with star to delete data before a certain time (version 0.7.0 does not support the deletion of data within a closed time interval). In a JAVA programming environment, you can use the [Java JDBC](/#/Documents/latest/chap6/sec1) to execute single or batch UPDATE statements. #### Delete Single Timeseries Taking ln Group as an example, there exists such a usage scenario: The wf02 plant's wt02 device has many segments of errors in its power supply status before 2017-11-01 16:26:00, and the data cannot be analyzed correctly. The erroneous data affected the correlation analysis with other devices. At this point, the data before this time point needs to be deleted. The SQL statement for this operation is ``` delete from root.ln.wf02.wt02.status where time<=2017-11-01T16:26:00; ``` #### Delete Multiple Timeseries When both the power supply status and hardware version of the ln group wf02 plant wt02 device before 2017-11-01 16:26:00 need to be deleted, [the prefix path with broader meaning or the path with star](/#/Documents/latest/chap2/sec1) can be used to delete the data. The SQL statement for this operation is: ``` delete from root.ln.wf02.wt02 where time <= 2017-11-01T16:26:00; ``` or ``` delete from root.ln.wf02.wt02.* where time <= 2017-11-01T16:26:00; ``` It should be noted that when the deleted path does not exist, IoTDB will give the corresponding error prompt as shown below: ``` IoTDB> delete from root.ln.wf03.wt02.status where time < now() Msg: TimeSeries does not exist and its data cannot be deleted ```