• Start

Methods

Delete

The .NET SDK for SurrealDB enables simple and advanced querying of a remote or embedded database.

Method Syntax
await db.Delete(resource)

Arguments

Description

thing

The table name or a RecordId to delete.

cancellationToken

The cancellationToken enables graceful cancellation of asynchronous operations.

// Delete all records from a table
await db.Delete("person");

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

Was this page helpful?