delete()

Usage

import { useRepo } from 'pinia-orm'
import User from './models/User'
const userRepo = useRepo(User)
console.log(userRepo.where('name', 'John').delete()) // User
If you want also relations to be deleted with the deleted record look at Deleting Relationships

Typescript Declarations

function delete(): Model[]