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.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg5fQ.8ETGJ7pdlCJj5oQ8JZ49zNJab06oiB8nFFYkCiaukD8 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.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg5fQ.8ETGJ7pdlCJj5oQ8JZ49zNJab06oiB8nFFYkCiaukD8" \ -H "Host: example.org" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Cookie: "
201 Created
{ "metadata": { "guid": "a0b8c708-b722-493b-8a63-7d3ffc00e4df", "created_at": "2015-07-27T22:43:09Z", "url": "/v2/jobs/a0b8c708-b722-493b-8a63-7d3ffc00e4df" }, "entity": { "guid": "a0b8c708-b722-493b-8a63-7d3ffc00e4df", "status": "queued" } }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 6b075eaf-73d0-4d65-bbd7-d80b54386eac Content-Length: 270 X-Content-Type-Options: nosniff