Let’s give our blog writer an option to delete his/her blog. After this we will have completed the CRUD operations.
Just like before we need to edit the view/frontend/templates/list.phtml
Here we have added another column “Delete” and in the delete link we have used javascript’s confirm dialog.

We will redirect the user to the list page after deleting the blog. So we just need to create the controller file. Please check the readymade Magento 2 Blog Extension
Let’s create Controller/Manage/Delete.php file,
There is nothing much to talk about here because we have seen very similar codes before also. Only thing you have to notice is $model->delete() method. After loading the model we have deleted it with delete() and we have redirected to the list page.

The folder structure till now,
