Update docs about delete_post function

Incorrect delete function in the docs. It should be delete_post.