delete doc api