From ecafb614b731d80b6dfa8fa94a80976f59dd238f Mon Sep 17 00:00:00 2001 From: Elizabeth Vo <65384387+ensvo@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:18:10 +0900 Subject: [PATCH] api docs for registry delete --- pages/apis/rest_api/packages/registries.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/apis/rest_api/packages/registries.md b/pages/apis/rest_api/packages/registries.md index 74cf1eea83..cdfb0e3cfa 100644 --- a/pages/apis/rest_api/packages/registries.md +++ b/pages/apis/rest_api/packages/registries.md @@ -155,4 +155,15 @@ Optional [request body properties](/docs/api#request-body-properties): Required scope: `write_registries` -Success response: `200 OK` \ No newline at end of file +Success response: `200 OK` + +## Delete a registry + +```bash +curl -H "Authorization: Bearer $TOKEN" \ + -X DELETE "https://api.buildkite.com/v2/packages/organizations/#{org.slug}/registries/#{registry.slug}" +``` + +Required scope: `delete_registries` + +Success response: `200 OK`