create action to delete posts