SolFSStorage.DeleteDirectory method


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

SolFSStorage     See also    


Deletes a directory from SolFSStorage.


    procedure DeleteDirectory(Directory: TSolFSString);
    type TSolFSString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[Plain C]
    long _stdcall StorageDeleteDirectory(unsigned long Storage, const wchar_t* Directory);

[C++ (DLL/Lib)]
    void DeleteDirectory(unsigned short* Directory);

[C++ (VCL)]
    void __fastcall DeleteDirectory(TSolFSString Directory);

[C++ (.NET)]
    void DeleteDirectory(String* directory)

    void DeleteDirectory(string directory)

    Sub DeleteDirectory(directory As String)

    void deleteDirectory(String directory);


  • Directory - the full name of the directory to be deleted.
  • [Plain C] Storage - handle to the storage returned by Create or Open function.

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.


Use DeleteDirectory if you want to delete an existing directory from the SolFSStorage.
DeleteDirectory doesn't delete directories which are not empty.

See also

CreateDirectory     ForceCreateDirectories