add delete post function
add test coverage