FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
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)
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
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!