> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a Pay connector

> Delete a connector by name in the authenticated organization. Both test and live connectors can be deleted. Returns no response body on success; a missing name or a connector in another organization returns 404.



## OpenAPI

````yaml /openapi/source/external/call-control/pay-connectors.json delete /pay_connectors/{name}
openapi: 3.1.0
info:
  title: Telnyx Pay Connectors API
  version: 2.0.0
  x-latency-category: responsive
  x-endpoint-cost: light
  description: >-
    Manage generic Pay connectors. This reference covers generic processor
    configuration only. Use a Telnyx API key for these endpoints; config
    authentication applies separately to requests sent to the payment processor.
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
tags:
  - name: Pay Connectors
    description: Generic payment connector configuration.
paths:
  /pay_connectors/{name}:
    delete:
      tags:
        - Pay Connectors
      summary: Delete a Pay connector
      description: >-
        Delete a connector by name in the authenticated organization. Both test
        and live connectors can be deleted. Returns no response body on success;
        a missing name or a connector in another organization returns 404.
      operationId: deletePayConnector
      parameters:
        - name: name
          in: path
          required: true
          description: Connector name, not its UUID. URL-encode the name as a path segment.
          schema:
            type: string
            example: my-payment-connector
      responses:
        '204':
          description: Connector deleted. No response body.
        '404':
          description: Connector not found in the organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayConnectorErrors'
              example:
                errors:
                  - detail: Resource not found
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Telnyx from 'telnyx';

            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });

            await client.payConnectors.delete('name');
        - lang: Python
          source: |
            import os
            from telnyx import Telnyx

            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )
            client.pay_connectors.delete(
                "name",
            )
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\terr := client.PayConnectors.Delete(\n\t\tcontext.TODO(),\n\t\t\"name\",\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n}\n"
        - lang: Java
          source: |-
            package com.telnyx.sdk.example;

            import com.telnyx.sdk.client.TelnyxClient;
            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;

            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    client.payConnectors().delete("name");
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

            telnyx = Telnyx::Client.new(api_key: "My API Key")

            response = telnyx.pay_connectors.delete("name")

            puts(response)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use Telnyx\Client;

            use Telnyx\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API
            Key');


            try {
              $response = $client->payConnectors->delete(
                'name',
              );

              var_dump($response);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx pay-connectors delete \
              --api-key 'My API Key' \
              --name my-payment-connector
components:
  schemas:
    PayConnectorErrors:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: Telnyx error code.
              title:
                type: string
                description: Error title.
              detail:
                type: string
                description: Error detail.
              source:
                type: object
                properties:
                  pointer:
                    type: string
                    description: Invalid field pointer.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key, not the processor bearer token.

````