Update README.md
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Successful in 41s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m45s
Build-Test-Publish / create-manifest (push) Failing after 10s

This commit is contained in:
j
2026-01-03 16:05:31 +13:00
parent dc6e1ff344
commit 96f19d8676

View File

@@ -322,6 +322,24 @@ Example:
curl -H "Authorization: Bearer your-token" http://localhost:8080/deleteobject?hash=abc123
```
### Delete Old Versions of a Label
Deletes all objects for a label except those with tags containing "latest". Objects that share the same hash as a "latest" tagged version are also preserved.
```
GET /deleteoldobjects?label={label}
```
Example:
```bash
curl -H "Authorization: Bearer your-token" "http://localhost:8080/deleteoldobjects?label=myproject"
```
Response:
```json
{"result": "success", "deleted": 3}
```
### List All Objects
```