# Delete payment page DELETE https://api-sandbox.payabli.com/api/Paypoint/{entry}/{subdomain} Deletes a payment page in a paypoint. Reference: https://docs.payabli.com/developers/api-reference/hostedpaymentpages/delete-a-payment-page ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Delete a payment page version: endpoint_paypoint.removePage paths: /Paypoint/{entry}/{subdomain}: delete: operationId: remove-page summary: Delete a payment page description: Deletes a payment page in a paypoint. tags: - - subpackage_paypoint parameters: - name: entry in: path description: >- The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) required: true schema: type: string - name: subdomain in: path description: >- Payment page identifier. The subdomain value is the last portion of the payment page URL. For example, in`https://paypages-sandbox.payabli.com/513823dc10/pay-your-fees-1`, the subdomain is `pay-your-fees-1`. required: true schema: type: string - name: requestToken in: header required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/type_:PayabliApiResponseGeneric2Part' '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_:IsSuccess: type: boolean type_:ResponseText: type: string type_:PayabliApiResponseGeneric2Part: type: object properties: isSuccess: $ref: '#/components/schemas/type_:IsSuccess' responseText: $ref: '#/components/schemas/type_:ResponseText' required: - responseText ``` ## SDK Code Examples ```python from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.paypoint.remove_page( entry="8cfec329267", subdomain="pay-your-fees-1", ) ``` ```typescript import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.paypoint.removePage("8cfec329267", "pay-your-fees-1"); ``` ```go import ( context "context" option "github.com/payabli/sdk-go/option" sdkgoclient "github.com/payabli/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "", ), ) response, err := client.Paypoint.RemovePage( context.TODO(), "8cfec329267", "pay-your-fees-1", ) ``` ```csharp using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.Paypoint.RemovePageAsync("8cfec329267", "pay-your-fees-1"); ``` ```ruby require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/Paypoint/8cfec329267/pay-your-fees-1") 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 HttpResponse response = Unirest.delete("https://api-sandbox.payabli.com/api/Paypoint/8cfec329267/pay-your-fees-1") .header("requestToken", "") .asString(); ``` ```php request('DELETE', 'https://api-sandbox.payabli.com/api/Paypoint/8cfec329267/pay-your-fees-1', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/Paypoint/8cfec329267/pay-your-fees-1")! 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() ```