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
- AttendedTransfer command
- BlindTransfer command
- Call command
- ForwardCall command
- ListCallHistory command
- Hangup command
- Hold command
- ListActiveCalls command
- ListExtensions command
- ListExtensionTypes command
- Play command
- Record command
- Request command
- SendDTMF command
- Speak
- Unhold command
- ReceiveMessage command
- SendEmail command
- SendMessage command
- SendSMS command
- Array command
- Beep command
- Delay command
- DeleteFile command
- ForEach command
- GoTo command
- MoveFile command
- Reject command
- Route command
- SendAlarmNotification command
- SendMsg command
- UserInput command
- Var command
- WaitForMsg command
- CallSetup command
- Exit command
- ListAddressbokkContacts
- ListAddressbookNames command
- ReceiveAlarmNotification