github.com/twilio/twilio-go@v1.20.1/rest/voice/v1/archives_calls.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Voice 8 * This is the public Twilio REST API. 9 * 10 * NOTE: This class is auto generated by OpenAPI Generator. 11 * https://openapi-generator.tech 12 * Do not edit the class manually. 13 */ 14 15 package openapi 16 17 import ( 18 "fmt" 19 "net/url" 20 "strings" 21 ) 22 23 // Delete an archived call record from Bulk Export. Note: this does not also delete the record from the Voice API. 24 func (c *ApiService) DeleteArchivedCall(Date string, Sid string) error { 25 path := "/v1/Archives/{Date}/Calls/{Sid}" 26 path = strings.Replace(path, "{"+"Date"+"}", fmt.Sprint(Date), -1) 27 path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) 28 29 data := url.Values{} 30 headers := make(map[string]interface{}) 31 32 resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) 33 if err != nil { 34 return err 35 } 36 37 defer resp.Body.Close() 38 39 return nil 40 }