delete file Action
Deletes a single media file from the Aculab media file store. This action can be used at any point including the Final page as it doesn't depend on an active call.
The delete file properties are:
Property | Required/Optional | Default | Description |
---|---|---|---|
filename | required | - | The name of the file to delete. |
-
Examples:
-
Delete a recorded file:
"delete_file" : { "filename" : "/rest_api/recordings/2013/11/07/rest_16_39_23_058d242936dcc5f9.47610.wav" }
-
-
API Reference:
class DeleteFile : TelephonyAction
Represents a delete file action.
Constructors:
DeleteFile(String filename);
Examples:
-
Add a delete file action:
actions.Add(new DeleteFile("/rest_api/recordings/2013/05/13/18_11_50_05325295b0224850.981.wav"));
-
-
API Reference:
class DeleteFile Inherits TelephonyAction
Represents a delete file action.
Constructors:
New(filename As String)
Examples:
-
Add a delete file action:
actions.Add(New DeleteFile("/rest_api/recordings/2013/05/13/18_11_50_05325295b0224850.981.wav"))
-
-
API Reference:
class DeleteFile extends TelephonyAction
Represents a delete file action.
Constructors:
DeleteFile(String filename);
Examples:
-
Add a delete file action:
actions.add(new DeleteFile("/rest_api/recordings/2013/05/13/18_11_50_05325295b0224850.981.wav"));
-
-
API Reference:
class DeleteFile
Represents a delete file action.
Constructors:
DeleteFile(filename)
Examples:
-
Add a delete file action:
from aculab.telephony_rest_api import Actions, DeleteFile my_actions = Actions('Usage example 1: Delete file.') my_actions.add(DeleteFile(filename='rest_api/recordings/2013/08/21/13_25_30_053096b636d854e0.213.wav')) response_body = my_actions.get_json()
-
-
API Reference:
The DeleteFile class
Introduction
Represents a delete file action.Class synopsis
class DeleteFile extends ActionBase { /* methods */ public __construct(string $filename) }
Examples:
-
Delete a file:
$actions->add(new Aculab\TelephonyRestAPI\DeleteFile('rest_api/recordings/2013/11/07/rest_16_39_23_058d242936dcc5f9.47610.wav'));
-