Skip to content

Delete

Deletes the specified file from the repository.

1
myFiles.Delete(id: string):void

Parameters

string id
    The ID of the file.

Remarks

If the id parameter is not a GUID value, an Error is thrown.

Usage:

1
2
3
4
5
files.forEach(function(file) {
    // do sth with the file

    $Files.Delete(file.Id);
});