# Delete application DELETE https://api-sandbox.payabli.com/api/Boarding/app/{appId} Deletes a boarding application by ID. Reference: https://docs.payabli.com/developers/api-reference/boarding/delete-boarding-application ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Delete boarding application version: endpoint_boarding.DeleteApplication paths: /Boarding/app/{appId}: delete: operationId: delete-application summary: Delete boarding application description: Deletes a boarding application by ID. tags: - - subpackage_boarding parameters: - name: appId in: path description: 'Boarding application ID. ' required: true schema: type: integer - name: requestToken in: header required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: >- #/components/schemas/type_:PayabliApiResponse00Responsedatanonobject '400': description: Bad request/ invalid data content: {} '401': description: Unauthorized request. content: {} '500': description: Internal API Error content: {} '503': description: Database connection error content: {} components: schemas: type_:Responsecode: type: integer type_:PageIdentifier: type: string type_:IsSuccess: type: boolean type_:ResponseText: type: string type_:Responsedatanonobject: oneOf: - type: string - type: integer type_:PayabliApiResponse00Responsedatanonobject: type: object properties: responseCode: $ref: '#/components/schemas/type_:Responsecode' pageIdentifier: $ref: '#/components/schemas/type_:PageIdentifier' roomId: type: integer format: int64 description: >- Describes the room ID. Only in use on Boarding endpoints, returns `0` when not applicable. isSuccess: $ref: '#/components/schemas/type_:IsSuccess' responseText: $ref: '#/components/schemas/type_:ResponseText' responseData: $ref: '#/components/schemas/type_:Responsedatanonobject' required: - responseText ``` ## SDK Code Examples ```typescript General success response example for some boarding operations. import { PayabliClient, PayabliEnvironment } from "@payabli/sdk-node"; async function main() { const client = new PayabliClient({ environment: PayabliEnvironment.Sandbox, apiKey: "YOUR_API_KEY_HERE", }); await client.boarding.deleteApplication(352); } main(); ``` ```python General success response example for some boarding operations. from payabli import payabli from payabli.environment import payabliEnvironment client = payabli( environment=payabliEnvironment.SANDBOX, api_key="YOUR_API_KEY_HERE" ) client.boarding.delete_application( app_id=352 ) ``` ```csharp General success response example for some boarding operations. using PayabliApi; using System.Threading.Tasks; namespace Usage; public class Example { public async Task Do() { var client = new PayabliApiClient( apiKey: "YOUR_API_KEY_HERE", clientOptions: new ClientOptions { BaseUrl = PayabliApiEnvironment.Sandbox } ); await client.Boarding.DeleteApplicationAsync( 352 ); } } ``` ```go General success response example for some boarding operations. package example import ( client "github.com/payabli/sdk-go/v/client" option "github.com/payabli/sdk-go/v/option" payabli "github.com/payabli/sdk-go/v" context "context" ) func do() { client := client.NewClient( option.WithBaseURL( payabli.Environments.Sandbox, ), option.WithApiKey( "YOUR_API_KEY_HERE", ), ) client.Boarding.DeleteApplication( context.TODO(), 352, ) } ``` ```ruby General success response example for some boarding operations. require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/Boarding/app/352") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Delete.new(url) request["requestToken"] = '' response = http.request(request) puts response.read_body ``` ```java General success response example for some boarding operations. import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.delete("https://api-sandbox.payabli.com/api/Boarding/app/352") .header("requestToken", "") .asString(); ``` ```php General success response example for some boarding operations. request('DELETE', 'https://api-sandbox.payabli.com/api/Boarding/app/352', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift General success response example for some boarding operations. import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/Boarding/app/352")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "DELETE" request.allHTTPHeaderFields = headers 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() ```