You can use the delete method when you want to remove a record from a table, as follows:
$database->delete('user', [
'uuid' => '41263659-3c1f-305a-bfac-6a7c9eab0507'
]);
If you want to find out more details about this method, visit https://medoo.in/api/delete.
That's it regarding how to write basic CRUD operations with Medoo and PDO.
Please check out Medoo's documentation at https://medoo.in/doc for the rest of the methods that you can use. There are other alternatives to Medoo, such as Doctrine DBAL at https://github.com/doctrine/dbal and Eloquent at https://github.com/illuminate/database.
In this section, you studied a handful of PSRs and CRUD operations. Next, we will cover how to put all these together and integrate them with Nuxt. Since PHP and JavaScript are two different languages, the only way for them to talk to each other is through JSON in the API.
But before we write a script that will...