impl delete post function