right  Talk To Us!

delete file Action

Deletes a single media file from the cloud 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:

PropertyRequired/OptionalDefaultDescription
filenamerequiredThe name of the file to delete from your cloud media file store.

 See also: Voicemail

  • Examples:

    • Delete a recorded file:

          "delete_file" :
          {
              "filename" : "/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav"
          }
      
  • DeleteFile Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    An action to delete a single media file from the Aculab media file store.

    • public class DeleteFile : TelephonyAction
      {
          // Constructors
          public DeleteFile(string filename);
      }
      

      Examples:

      • Delete a recorded file:

        List<TelephonyAction> actions = new List<TelephonyAction>();
        
        var deleteFileAction = new DeleteFile("/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav");
        actions.Add(deleteFileAction);
        
    • public class DeleteFile : TelephonyAction
      {
          // Constructors
          public DeleteFile(string filename);
      }
      

      Examples:

      • Delete a recorded file:

        List<TelephonyAction> actions = new List<TelephonyAction>();
        
        var deleteFileAction = new DeleteFile("/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav");
        actions.Add(deleteFileAction);
        
    • public class DeleteFile : TelephonyAction
      {
          // Constructors
          public DeleteFile(string filename);
      }
      

      Examples:

      • Delete a recorded file:

        List<TelephonyAction> actions = new List<TelephonyAction>();
        
        var deleteFileAction = new DeleteFile("/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav");
        actions.Add(deleteFileAction);
        
  • DeleteFile Class
    Namespace: Aculab.Cloud.RestAPIWrapper
    Assembly: Aculab.Cloud.RestAPIWrapper.dll

    An action to delete a single media file from the Aculab media file store.

    • Public Class DeleteFile
          Inherits TelephonyAction
      
          ' Constructors
          Public Sub New (filename As String)
      End Class
      

      Examples:

      • Delete a recorded file:

        Dim actions = New List(Of TelephonyAction)
        
        Dim deleteFileAction = New DeleteFile("/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav")
        actions.Add(deleteFileAction)
        
    • Public Class DeleteFile
          Inherits TelephonyAction
      
          ' Constructors
          Public Sub New (filename As String)
      End Class
      

      Examples:

      • Delete a recorded file:

        Dim actions = New List(Of TelephonyAction)
        
        Dim deleteFileAction = New DeleteFile("/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav")
        actions.Add(deleteFileAction)
        
  • class DeleteFile extends TelephonyAction

    Represents a delete file action.

    Class synopsis:

    // Constructors:
    public DeleteFile(String filename)
    

    Examples:

    • Delete a recorded file:

      List<TelephonyAction> actions = new ArrayList<TelephonyAction>();
      
      actions.add(new DeleteFile("/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav"));
      
  • class DeleteFile

    Represents a delete file action.

    Class synopsis:

    # DeleteFile object:
    DeleteFile(filename)
    

    Examples:

    • Delete a recorded file:

      # Create a list of actions that will be passed to the TelephonyResponse constructor
      list_of_actions = []
      
      list_of_actions.append(DeleteFile(filename='rest_api/recordings/2013/08/21/13_25_30_053096b636d854e0.213.wav'))
      
  • The DeleteFile class

    Introduction

    Represents a delete file action.

    Class synopsis

    class DeleteFile extends ActionBase {
    
        /* methods */
        public __construct(string $filename)
    }
    

    Examples:

    • Delete a recorded file:

      $response->addAction(new Aculab\TelephonyRestAPI\DeleteFile('/rest_api/recordings/2018/10/06/rest_16_39_23_058d242936dcc5f9.4460.wav'));