SolFSStorage.DeleteFile method


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

SolFSStorage     See also    


Deletes the file.


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

[Plain C]
    long _stdcall StorageDeleteFile(unsigned long Storage, const wchar_t* FileName);

[C++ (DLL/Lib)]
    void DeleteFile(unsigned short* FileName);

[C++ (VCL)]
    void __fastcall DeleteFile(TSolFSString FileName);

[C++ (.NET)]
    void DeleteFile(String* fileName)

    void DeleteFile(string fileName)

    Sub DeleteFile(fileName As String)

    void deleteFile(String fileName);


  • FileName - full name of the file.
  • [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 this method to delete file or stream from SolFSStorage.
When the file is deleted, all it's streams are deleted too.

When applied to the symbolic link, this method deletes ONLY the link itself, but not the file, referred to by the link.

See also

Create     [DLL] MoveFile     OpenFile