How to make a button that deletes a block and delete the block record.

Permalink
So let's say i made 2 blocks and they are on separate page. Block A - you can add images and text to it. Which is then saved in a database.

Block B - gets the data from the database and populate itself.

When i delete a content on Block A it doesn't delete/update the database so the content still shows in Block be. Is there a way to make a button that deletes a block and the data row from the database?

Thanks in advance.

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi dworker2015,

"So let's say i made 2 blocks and they are on separate page. Block A - you can add images and text to it. Which is then saved in a database."

Are these two blocks of the same type?

Can you provide more specific details for what you are trying to accomplish.