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.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTF9.i_XuM9ZK8uOmCoHgU3jzlkJqTRSUoi1eyTkZrmLF9Ss
Host: example.org
Content-Type: application/json
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/blobstores/buildpack_cache" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OSIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTF9.i_XuM9ZK8uOmCoHgU3jzlkJqTRSUoi1eyTkZrmLF9Ss" \
	-H "Host: example.org" \
	-H "Content-Type: application/json" \
	-H "Cookie: "

Response

Status

202 Accepted

Body

{
  "metadata": {
    "guid": "919a6964-ea88-43cc-9ac1-0dbc3769f743",
    "created_at": "2016-06-08T16:41:31Z",
    "url": "/v2/jobs/919a6964-ea88-43cc-9ac1-0dbc3769f743"
  },
  "entity": {
    "guid": "919a6964-ea88-43cc-9ac1-0dbc3769f743",
    "status": "queued"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6d22fde1-80b1-4988-bbbc-5ec464ad2b10
Content-Length: 270
X-Content-Type-Options: nosniff