$delete

Delete records from the table based on the provided conditions. The $delete method is used to remove specific entries from the database. If soft delete is enabled, the records are marked as deleted without being permanently removed. Otherwise, the records are permanently deleted.

Query
Parameter's

$where

<StaticProps>

$options

<FindOptions>

await Member.$delete({
    $where: {
        isPremium: true
    },
    $options: {
        $force: true,
        $limit: 10
    }
});

Last updated