Functionality to delete posts