deleteRecording method

Future<bool> deleteRecording(
  1. String recordingToken
)

DeleteRecording shall delete a recording object. Whenever a recording is deleted, the device shall delete all the tracks that are part of the recording, and it shall delete all the Recording Jobs that record into the recording. For each deleted recording job, the device shall also delete all the receiver objects associated with the recording job that are automatically created using the AutoCreateReceiver field of the recording job configuration structure and are not used in any other recording job.

This method is optional. It shall be available if the Recording/DynamicRecordings capability is TRUE.

ACCESS CLASS: ACTUATE

Implementation

Future<bool> deleteRecording(String recordingToken) async {
  loggy.debug('deleteRecording');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request: RecordingsRequest.deleteRecording(recordingToken),
      ));

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return true;
}