Video Lesson: Delete data with a resource model in Magento

Delete data with a resource model in Magento

Enroll to watch this lesson

Black Friday The whole University for $299/yr.

Delete data with a resource model in Magento

Learn how to delete data with a Magento 2 resource model using PostRepository deleteById and exception handling.


Lesson Content

Deleting data using a resource model is pretty straightforward, but the catch here is that you need to pass in an instance of the object to delete. We need to call the resource model’s delete function...

Premium content

Enroll to unlock the full content and all course materials.

Black Friday

The whole University for $299/yr.

Get the deal →
Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Black Friday

The whole University for $299/yr.

Every course, Maggie & Campus. The lowest price ever.

Get the deal →
Comments

Join the discussion!

Notes

Keep track of what you learn!