Search the docs
Languages
/
Mojo
Methods
The delete() method for the SurrealDB Mojo SDK deletes all records in a table, or a specific record.
Deletes all records in a table, or a specific record. This is a convenience wrapper that runs DELETE <thing>;.
DELETE <thing>;
Method Syntax
client.delete(thing, session, txn)
thing
session
txn
# Delete a specific recordvar resp = client.delete("person:chiru")# Delete every record in a tablevar cleared = client.delete("person")
DELETE $thing;
Was this page helpful?
Previous
create
Next
health