Remove
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
Remove(ref, ts, action)
remove(ref, ts, action)
Remove(ref, ts, action)
Remove(ref, ts, action)
Remove(ref, ts, action)
Remove(ref, ts, action)
Description
The Remove
function deletes an event from a document’s history.
The ref
parameter must be a reference to a document within a
user-defined collection.
Parameters
Parameter | Type | Definition and Requirements | ||
---|---|---|---|---|
|
Reference |
A Reference to the document that should have an event removed. |
||
|
Long or Timestamp |
The timestamp for the specific entry in the document’s history that should be removed. Can be expressed as either a number of UNIX microseconds since the Unix epoch, or as a Timestamp.
|
||
|
String |
The type of action ( |
Returns
An object containing the metadata of the remove
operations.
Field Name | Field Type | Definition and Requirements |
---|---|---|
|
Reference |
A reference that identifies the document that was updated. |
|
Object |
A copy of the new document data. |
|
Long |
The timestamp, with microsecond resolution, of the event removal. |
Examples
The following query changes the history for a document in the "spells" collection. The create event at timestamp 1 is removed.
null
None
{}
NullV
null
null