.delete()
Deletes all records in a table, or a specific record, from the database.
Method Syntaxdb.delete(thing,data)
Arguments | Description | ||
---|---|---|---|
thing required | The table name or a |
# Delete all records from a table await db.delete('person') # Delete a specific record from a table await db.delete(RecordID('person', 'h5wxrf2ewk8xjxosxtyc'))
This function will run the following query in the database.
DELETE $thing;