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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzIiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.wf-ggtmGi_adem4JmAW6oA0Ah9l2E8S4_YHLFw_qEEA
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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzIiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.wf-ggtmGi_adem4JmAW6oA0Ah9l2E8S4_YHLFw_qEEA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2ca0e409-5199-42f8-abdf-ca158e989e2d",
    "created_at": "2015-10-07T00:35:20Z",
    "url": "/v2/jobs/2ca0e409-5199-42f8-abdf-ca158e989e2d"
  },
  "entity": {
    "guid": "2ca0e409-5199-42f8-abdf-ca158e989e2d",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3b3992c5-ca29-45ed-a033-46c119575e7f
Content-Length: 270
X-Content-Type-Options: nosniff