debian-mirror-gitlab/doc/api/dependency_proxy.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

2021-01-29 00:20:46 +05:30
---
stage: Package
group: Package
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2021-11-11 11:23:49 +05:30
# Dependency Proxy API **(FREE)**
2020-04-22 19:07:51 +05:30
## Purge the dependency proxy for a group
2021-01-29 00:20:46 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/11631) in GitLab 12.10.
2021-11-11 11:23:49 +05:30
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/273655) from GitLab Premium to GitLab Free in 13.6.
2020-04-22 19:07:51 +05:30
2022-01-12 12:59:36 +05:30
Schedules for deletion the cached manifests and blobs for a group. This endpoint requires the
2022-04-04 11:22:00 +05:30
Owner role for the group.
2020-04-22 19:07:51 +05:30
```plaintext
DELETE /groups/:id/dependency_proxy/cache
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
2021-09-30 23:02:18 +05:30
| `id` | integer/string | yes | The ID or [URL-encoded path of the group](index.md#namespaced-path-encoding) owned by the authenticated user |
2020-04-22 19:07:51 +05:30
Example request:
```shell
curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/5/dependency_proxy/cache"
```