DeleteFile Method

Deletes a file from the cache.

Syntax

public void DeleteFile(string fileId);
Public Sub DeleteFile(ByVal FileId As String)

Remarks

This method deletes the cached file identified by FileId, removing all of its data from the cache. If the specified file is currently open, it is closed first.

Important: The specified file is not flushed to external storage before being deleted; any unflushed data will be lost.

.NET Standard Notes

To call this method in an asynchronous manner call DeleteFileAsync instead. When the method completes (or an error is encountered) the DeleteFileCompleted event will fire.

 
 
Copyright (c) 2020 Callback Technologies, Inc. - All rights reserved.
CBFS Cache 2020 .NET Edition - Version 20.0 [Build 7647]