DeleteFile command

The DeleteFile command is used for deleting your source file what you do not need anymore from a specified directory. Important to mention that you only can delete from stated directories like the directory at that location where you installed the Ozeki 10, the Voicemails directory which contains the old, new and the attachment directories of an extension and the directory of the uploaded files. It is widely used as a Voicemail functionality when you would like to remove your listened old messages.

Parameters

Parameter name Example value Description Mandatory
FilePath $item.message The path of the file to be deleted. yes

OzML example

This script iterates through the 'oldvoicemails' array with the ForEach command and deletes every item from it.

<?xml version="1.0"?>
<Response>
    <ForEach source="oldvoicemails">
        <DeleteFile>$item.message</DeleteFile>
    </ForEach>
</Response>

More information