# Delete Fax Line DELETE https://api.hellosign.com/v3/fax_line Content-Type: application/json Deletes the specified Fax Line from the subscription. Reference: https://developer.hellosign.com/api/fax-line/delete ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Delete Fax Line version: endpoint_faxLine.delete paths: /fax_line: delete: operationId: delete summary: Delete Fax Line description: Deletes the specified Fax Line from the subscription. tags: - - subpackage_faxLine parameters: - name: Authorization in: header description: Basic authentication of the form `Basic `. required: true schema: type: string responses: '200': description: successful operation content: application/json: schema: $ref: '#/components/schemas/faxLine_delete_Response_200' '400': description: failed_operation content: {} requestBody: content: application/json: schema: $ref: '#/components/schemas/FaxLineDeleteRequest' components: schemas: FaxLineDeleteRequest: type: object properties: number: type: string description: The Fax Line number required: - number faxLine_delete_Response_200: type: object properties: {} ``` ## SDK Code Examples ```php PHP setUsername("YOUR_API_KEY"); $fax_line_delete_request = (new Dropbox\Sign\Model\FaxLineDeleteRequest()) ->setNumber("[FAX_NUMBER]"); try { (new Dropbox\Sign\Api\FaxLineApi(config: $config))->faxLineDelete( fax_line_delete_request: $fax_line_delete_request, ); } catch (Dropbox\Sign\ApiException $e) { echo "Exception when calling FaxLineApi#faxLineDelete: {$e->getMessage()}"; } ``` ```csharp C# using System; using System.Collections.Generic; using System.IO; using System.Text.Json; using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; namespace Dropbox.SignSandbox; public class FaxLineDeleteExample { public static void Run() { var config = new Configuration(); config.Username = "YOUR_API_KEY"; var faxLineDeleteRequest = new FaxLineDeleteRequest( number: "[FAX_NUMBER]" ); try { new FaxLineApi(config).FaxLineDelete( faxLineDeleteRequest: faxLineDeleteRequest ); } catch (ApiException e) { Console.WriteLine("Exception when calling FaxLineApi#FaxLineDelete: " + e.Message); Console.WriteLine("Status Code: " + e.ErrorCode); Console.WriteLine(e.StackTrace); } } } ``` ```typescript TypeScript import * as fs from 'fs'; import api from "@dropbox/sign" import models from "@dropbox/sign" const apiCaller = new api.FaxLineApi(); apiCaller.username = "YOUR_API_KEY"; const faxLineDeleteRequest: models.FaxLineDeleteRequest = { number: "[FAX_NUMBER]", }; apiCaller.faxLineDelete( faxLineDeleteRequest, ).catch(error => { console.log("Exception when calling FaxLineApi#faxLineDelete:"); console.log(error.body); }); ``` ```java Java package com.dropbox.sign_sandbox; import com.dropbox.sign.ApiException; import com.dropbox.sign.Configuration; import com.dropbox.sign.api.*; import com.dropbox.sign.auth.*; import com.dropbox.sign.JSON; import com.dropbox.sign.model.*; import java.io.File; import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Map; public class FaxLineDeleteExample { public static void main(String[] args) { var config = Configuration.getDefaultApiClient(); ((HttpBasicAuth) config.getAuthentication("api_key")).setUsername("YOUR_API_KEY"); var faxLineDeleteRequest = new FaxLineDeleteRequest(); faxLineDeleteRequest.number("[FAX_NUMBER]"); try { new FaxLineApi(config).faxLineDelete( faxLineDeleteRequest ); } catch (ApiException e) { System.err.println("Exception when calling FaxLineApi#faxLineDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ```ruby Ruby require "json" require "dropbox-sign" Dropbox::Sign.configure do |config| config.username = "YOUR_API_KEY" end fax_line_delete_request = Dropbox::Sign::FaxLineDeleteRequest.new fax_line_delete_request.number = "[FAX_NUMBER]" begin Dropbox::Sign::FaxLineApi.new.fax_line_delete( fax_line_delete_request, ) rescue Dropbox::Sign::ApiError => e puts "Exception when calling FaxLineApi#fax_line_delete: #{e}" end ``` ```python Python import json from datetime import date, datetime from pprint import pprint from dropbox_sign import ApiClient, ApiException, Configuration, api, models configuration = Configuration( username="YOUR_API_KEY", ) with ApiClient(configuration) as api_client: fax_line_delete_request = models.FaxLineDeleteRequest( number="[FAX_NUMBER]", ) try: api.FaxLineApi(api_client).fax_line_delete( fax_line_delete_request=fax_line_delete_request, ) except ApiException as e: print("Exception when calling FaxLineApi#fax_line_delete: %s\n" % e) ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.hellosign.com/v3/fax_line" payload := strings.NewReader("{\n \"number\": \"[FAX_NUMBER]\"\n}") req, _ := http.NewRequest("DELETE", url, payload) req.Header.Add("Authorization", "Basic :") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```swift import Foundation let headers = [ "Authorization": "Basic :", "Content-Type": "application/json" ] let parameters = ["number": "[FAX_NUMBER]"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.hellosign.com/v3/fax_line")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "DELETE" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```