rewrote delete post method