DQL language syntax for deleting documents
DELETE
ensure that devices running Ditto Edge SDK are on version 4.10.1 and later.Support for Ditto Cloud Server is rolling out over the next few weeks.For more information on how to use delete and manage data reach out to Ditto’s Customer SupportEVICT
.DELETE
operation permanently removes one or more documents from a Ditto collection. Once a document is
deleted it cannot be recovered. Deleted documents can be re-created by using the INSERT
operation with
the same document id as the deleted document.
your_collection_name
is the name of the collection from which you want to retrieve the data.[condition]
represents the condition or criteria that determine which documents should be evicted from the local peer.[order by]
represents the path within a document to use to order the dataset and order (ASC
or DESC
).[limit]
represents the maximum number of documents that should be evicted.[offset]
represents the offset from 0 that should be used for the eviction query, in practice this should be rarely used.123
is permanently removed from the cars
collection:
SDK>CRUD>Removing Documents
.
TOMBSTONE
keyword (currently Ditto Server only) is a synonym for the new DELETE
keyword. Users using the TOMBSTONE
keyword will get the auto
cleanup properties of DELETE
without any changes.TOMBSTONE
will be deprecated/removed in an upcoming Major release.
DELETE
keyword is used to remove documents from a collection. To remove a
specific field from a document see Update > Deleting
Fields.