->delete()
Deletes all records in a table, or a specific record, from the database.
Method Syntax
$db->delete($thing)
Arguments
| Arguments | Type | Description |
|---|
thing required | string, RecordId or StringRecordId
| The table name or a RecordId to delete. |
Example usage
$db->delete('person');
$db->delete(new RecordId('person', 'h5wxrf2ewk8xjxosxtyc'));
Translated query
This function will run the following query in the database.
DELETE $thing;