---
title: "POST /gateway-delete-k8s-auth-config"
method: POST
path: "/gateway-delete-k8s-auth-config"
tags: ["v2"]
---

# POST /gateway-delete-k8s-auth-config

`POST /gateway-delete-k8s-auth-config`

## Request body

- GatewayDeleteK8SAuthConfig — gatewayDeleteK8SAuth is a command that deletes k8s auth config
  - `json` boolean — Set output format to JSON
  - `name` string, required — K8S Auth config name
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `201`

gatewayDeleteK8SAuthConfigResponse wraps response body.

- GatewayDeleteK8SAuthConfigOutput
  - `cluster_id` string
  - `parts_change` ConfigChange
    - `config_hash` ConfigHash
      - `admins` string
      - `ai_insights` string
      - `cache` string
      - `customer_fragements` string
      - `general` string
      - `k8s_auths` string
      - `kmip` string
      - `ldap` string
      - `leadership` string
      - `log_forwarding` string
      - `m_queue` string
      - `migration_status` string
      - `migrations` string
      - `producers` unknown
      - `producers_status` string
      - `rotators` unknown
      - `saml` string
      - `universal_identity` string
    - `last_change` LastConfigChange
      - `last_k8s_auths_change` K8SAuthsConfigLastChange
        - `changed_k8s_auths_ids` string[]
        - `created_k8s_auths_ids` string[]
        - `deleted_k8s_auths_ids` string[]
      - `last_migrations_change` MigrationsConfigLastChange
        - `changed_migrations` string[]
        - `created_migrations` string[]
        - `deleted_migrations` string[]
    - `last_status` LastStatusInfo
      - `migrations_status` MigrationStatus
        - `last_messages` object
        - `last_reports` object
        - `last_statuses` object
      - `producers_errors` unknown
      - `was_migrations_copied_to_new_table` boolean — flag to indicate migrationStatus copied to new table
    - `required_activity` RequiredActivity
      - `migrations_required_activity` object
    - `update_stamp` integer
  - `total_hash` string

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
