Created a destroy action in the posts controller