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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMwfQ.xt5adXP-VmUUjityRYqb69DBO53Yj5pKsRaneOvB8zQ
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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC0zOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMwfQ.xt5adXP-VmUUjityRYqb69DBO53Yj5pKsRaneOvB8zQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4c98a89f-80ac-43c5-8dc2-785ff9286816",
    "created_at": "2015-11-03T00:53:50Z",
    "url": "/v2/jobs/4c98a89f-80ac-43c5-8dc2-785ff9286816"
  },
  "entity": {
    "guid": "4c98a89f-80ac-43c5-8dc2-785ff9286816",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d09a2e8d-9d41-4fc4-9acc-81c897e879eb
Content-Length: 270
X-Content-Type-Options: nosniff