Skip to content

Files

Latest commit

stevsmitSteven Smith
and
Steven Smith
Mar 13, 2025
16ee9b1 · Mar 13, 2025

History

History
41 lines (33 loc) · 1.75 KB

org-delete-api.adoc

File metadata and controls

41 lines (33 loc) · 1.75 KB

Deleting an organization by using the {productname} API

Use the following procedure to delete an organization using the {productname} API.

Prerequisites
Procedure
  1. Enter the following command to delete an organization using the DELETE /api/v1/organization/{orgname} endpoint:

    $ curl -X DELETE \
      -H "Authorization: Bearer <bearer_token>" \
      "https://<quay-server.example.com>/api/v1/organization/<organization_name>"
  2. The CLI does not return information when deleting an organization from the CLI. To confirm deletion, you can check the {productname} UI, or you can enter the GET /api/v1/organization/{orgname} command to see if details are returned for the deleted organization:

    $ curl -X GET \
      -H "Authorization: Bearer <bearer_token>" \
      "<quay-server.example.com>/api/v1/organization/<organization_name>"

    Example output

    {"detail": "Not Found", "error_message": "Not Found", "error_type": "not_found", "title": "not_found", "type": "http://<quay-server.example.com>/api/v1/error/not_found", "status": 404}