Home
Version 3
Blobstores API

Blobstores API

Delete all blobs in the Buildpack cache blobstore

DELETE /v2/blobstores/buildpack_cache

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.

Request

Route

DELETE /v2/blobstores/buildpack_cache

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ1fQ.TaVKBG8P529J5rEx7wcW4n6kcnHarsW9O7WO5ZBvZS0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/blobstores/buildpack_cache" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ1fQ.TaVKBG8P529J5rEx7wcW4n6kcnHarsW9O7WO5ZBvZS0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6cf4a596-ba94-4619-8929-b90cf4e71596",
    "created_at": "2015-06-16T23:40:45Z",
    "url": "/v2/jobs/6cf4a596-ba94-4619-8929-b90cf4e71596"
  },
  "entity": {
    "guid": "6cf4a596-ba94-4619-8929-b90cf4e71596",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 86670d00-b72d-4973-a6bb-90e2b00c4d10
Content-Length: 270
X-Content-Type-Options: nosniff