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...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.