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.eyJ1c2VyX2lkIjoidWFhLWlkLTk1IiwiZW1haWwiOiJlbWFpbC02NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA2fQ.nRw_gnFhBRuu_2xLf-O-755ClNbL20ASHlfw98MpPwA 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.eyJ1c2VyX2lkIjoidWFhLWlkLTk1IiwiZW1haWwiOiJlbWFpbC02NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYzNjE4NzA2fQ.nRw_gnFhBRuu_2xLf-O-755ClNbL20ASHlfw98MpPwA" \ -H "Host: example.org" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Cookie: "
202 Accepted
{ "metadata": { "guid": "9f10be10-8660-466b-8c47-a8a94c3958bd", "created_at": "2016-05-12T00:45:06Z", "url": "/v2/jobs/9f10be10-8660-466b-8c47-a8a94c3958bd" }, "entity": { "guid": "9f10be10-8660-466b-8c47-a8a94c3958bd", "status": "queued" } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 7c314b35-e65a-4cdf-9216-548e083b4946 Content-Length: 270 X-Content-Type-Options: nosniff