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