Upload code for delete post function