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