def delete_document(self, id: str, schema: str) -> DeleteDocumentResponse:
        """
        Delete a document by ID.

        Note that this method returns a successful response even if the document does not exist.

        Args:
            id: Document ID
            schema: Schema to delete from
        """
        try:
            resp = self.http_client.delete(f'{self.document_url}/document/v1/{schema}/{schema}/docid/{id}')
        except httpx.HTTPError as e:
            raise VespaError(e) from e

        self._raise_for_status(resp)

        return DeleteDocumentResponse(**resp.json())

        Delete a document by ID.

        Note that this method returns a successful response even if the document does not exist.

        Args:
            id: Document ID
            schema: Schema to delete from
        
src/marqo/vespa/vespa_client.py