Delete an object given its xref.

def _deleteObject(self, xref):
        """Delete an object given its xref."""
        if self.isClosed:
            raise ValueError("operation illegal for closed doc")

        return _fitz.Document__deleteObject(self, xref)