Remove all unused Images

Use this API call to remove all unused Images matching a provided list of source Id's.

Requires the images-delete permission.

An unused image is any image that isn't being used by an environment or being depended on by a stack.


Returns a Task Descriptor Object, otherwise returns an Error.

POST /v1/images/5b9c2a77b6393d0001eb45fd/tasks

Example Request
$ curl \
'Authorization: Bearer API_KEY'
'X-Hub-Id: HUB_ID'
-H 'Content-Type: application/json' \
-d '{"action":"prune","contents":{"source_ids":["5b9c2a77b6393d0001eb45fd","5a232a77b6393d0001ac2df2","5ccc2a2226393d1231eb4abd"]}}' \
Example Response
"data": {
"action": "prune",
"job_id": "5d01b9b3db2ab00001508cd8"