This endpoint will delete all of the existing buildpack caches in the blobstore. The buildpack cache is used during staging by buildpacks as a way to cache certain resources, e.g. downloaded Ruby gems. An admin who wanted to decrease the size of their blobstore could use this endpoint to delete unnecessary blobs.
DELETE /v2/blobstores/buildpack_cache
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMiIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2Mzl9.81HIJRK1plri_sJyHYdkqzW78SsjcqXoEjcAZoEohgo Host: example.org Content-Type: application/x-www-form-urlencoded Cookie:
curl "https://api.[your-domain.com]/v2/blobstores/buildpack_cache" -d '' -X DELETE \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMiIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2Mzl9.81HIJRK1plri_sJyHYdkqzW78SsjcqXoEjcAZoEohgo" \ -H "Host: example.org" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Cookie: "
202 Accepted
{ "metadata": { "guid": "4ac0d94d-ff18-4a24-b16b-eb80163b4a1b", "created_at": "2016-04-16T01:23:59Z", "url": "/v2/jobs/4ac0d94d-ff18-4a24-b16b-eb80163b4a1b" }, "entity": { "guid": "4ac0d94d-ff18-4a24-b16b-eb80163b4a1b", "status": "queued" } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: eec7e01d-d3a6-454c-b6ff-d70ed4d76f42 Content-Length: 270 X-Content-Type-Options: nosniff