## Example for Recording Delete#require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")beginresponse=api.recordings.delete('c2186400-1c8c-1124-a664-0026b945b522')putsresponserescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Example for Recording deletevarplivo=require('plivo');(functionmain(){'use strict';// If auth id and auth token are not specified, Plivo will fetch them from the environment variables.varclient=newplivo.Client("<auth_id>","<auth_token>");client.recordings.delete("c2186400-1c8c-1124-a664-0026b945b522",// recording id).then(function(response){console.log(response);},function(err){console.error(err);});})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php/**
* Example for Recording delete
*/require'vendor/autoload.php';usePlivo\RestClient;usePlivo\Exceptions\PlivoRestException;$client=newRestClient("<auth_id>","<auth_token>");try{$response=$client->recordings->delete('c2186400-1c8c-1124-a664-0026b945b522');print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
packagecom.plivo.api.samples.recording;importjava.io.IOException;importcom.plivo.api.Plivo;importcom.plivo.api.exceptions.PlivoRestException;importcom.plivo.api.models.recording.Recording;/**
* Example for Recording delete
*/classRecordingDelete{publicstaticvoidmain(String[]args){Plivo.init("<auth_id>","<auth_token>");try{Recording.deleter("c2186400-1c8c-1124-a664-0026b945b522").delete();System.out.println("Deleted successfully.");}catch(PlivoRestException|IOExceptione){e.printStackTrace();}}}
/**
* Example for Recording Delete
*/usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{internalclassProgram{publicstaticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");try{varresponse=api.Recording.Delete(recordingId:"3ebae784-54fd-11e7-975a-024cb8ab2db9");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
// Example for Recording deletepackagemainimport("fmt""github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}err=client.Recordings.Delete("c2186400-1c8c-1124-a664-0026b945b522",)iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Println("Deleted successfully.")}
usingSystem;usingSystem.Collections.Generic;usingRestSharp;usingPlivo.API;namespacedelete_a_recording{publicclassProgram{publicstaticvoidMain(string[]args){RestAPIplivo=newRestAPI("Your AUTH_ID","Your AUTH_TOKEN");IRestResponse<GenericResponse>resp=plivo.delete_recording(newDictionary<string,string>(){{"recording_id","c2186400-1c8c-11e4-a664-0026b945b52x"}});//Prints the responseConsole.Write(resp.Content);Console.ReadLine();}}}