delete a post functionality