Remove Records
You can remove records with the recordRemove method of the Datastore class. This method removes all records that match a filter.
For example, to remove all records where the reference is equal to C:\data\file1.txt:
DatastoreRecord filter = new DatastoreRecord();
filter.setString("Reference", "C:\\data\\file1.txt");
datastore.recordRemove("Documents", filter);