.Delete()
Method Syntaxdb.Delete[T any, R any](resource)
Arguments | Description | ||
---|---|---|---|
thing required | The table name or a |
// Delete an entry by ID if err = surrealdb.Delete[models.RecordID](db, *person2.ID); err != nil { panic(err) } // Delete all entries if err = surrealdb.Delete[models.Table](db, models.Table("persons")); err != nil { panic(err) }