added the destroy method for the posts