Added delete post function.