Discuss this help topic in CBFS Forum

CallbackFileSystem.DeleteStorage method

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CallbackFileSystem     See also    

Overview

Removes a storage from the system.

Declaration

[Pascal]
    procedure DeleteStorage(ForceUnmount: boolean);

[C++ (Lib)]
    void DeleteStorage(bool ForceUnmount);

[C++ (VCL)]
    void __fastcall DeleteStorage(bool ForceUnmount);

[C++ (.NET)]
    void DeleteStorage(bool ForceUnmount);

[C#]
    void DeleteStorage(bool ForceUnmount);

[VB.NET]
    Sub DeleteStorage(ByVal ForceUnmount As Boolean)

[Java]
    void deleteStorage(boolean forceUnmount);

Parameters

  • ForceUnmount - when the parameter is set to true, the storage is deleted no matter if any mounting points exist.

Description

Use this method to remove the storage ("virtual disk drive") from the system.
When ForceUnmount is true, all mounting points added with AddMountingPoint() method are removed and all open files are forcefully closed. If ForceUnmount is false and there are mounting points present, the method fails (an exception is raised).

Note, that if you have added a mounting point using AddMountingPointEx() and have not deleted it before calling DeleteStorage, such mounting point and the storage itself will not be deleted.

Call from...

This method may be called only from outside of callback / event handlers.

See also

CreateStorage method    

Discuss this help topic in CBFS Forum