To permanently delete an object from a document, the client should call the OleDelete function. OleDelete closes the specified object, if necessary, before deleting it.