Skip to content

Delete

Deletes the specified file from the repository.

1
myDocumentFiles.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.

Examples

Delete a temporary file

1
2
3
4
5
var temp = $Files.AddString($Xml.OuterXml(), 'data.xml');

// ... send or process the file

$Files.Delete(temp.Id);