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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTh9.5A2VmQ6P336nWcZ2gOtFQ3Cac7MvAspCsQsuHk4iDII 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.eyJ1c2VyX2lkIjoidWFhLWlkLTM3MyIsImVtYWlsIjoiZW1haWwtMjc1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTh9.5A2VmQ6P336nWcZ2gOtFQ3Cac7MvAspCsQsuHk4iDII" \ -H "Host: example.org" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Cookie: "
201 Created
{ "metadata": { "guid": "12107da9-d1c5-445b-a629-2b138559a311", "created_at": "2015-10-13T17:31:58Z", "url": "/v2/jobs/12107da9-d1c5-445b-a629-2b138559a311" }, "entity": { "guid": "12107da9-d1c5-445b-a629-2b138559a311", "status": "queued" } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 962103f1-0945-43a0-a008-6d66136f9ade Content-Length: 270 X-Content-Type-Options: nosniff