SurrealDB Docs Logo

Enter a search query

.Delete()

Method Syntax
await db.Delete(resource)

Arguments

ArgumentsDescription
thing required

The table name or a RecordId to delete.

cancellationToken optional

The cancellationToken enables graceful cancellation of asynchronous operations.

Example usage

// Delete all records from a table await db.Delete("person"); // Delete a specific record from a table await db.Delete(("person", "h5wxrf2ewk8xjxosxtyc"));

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install