There are two ways to delete records from the XML file:
- With the XML ID of previously created records:
<delete model="library.book.category" id="book_category_to_delete"/>
- With the search domain:
<delete model="library.book.category" search="[('name', 'ilike', 'Test')]"/>