Delete an Image on a Host
/api/v2/images/{repo_id:.*}/hosts/{host_id}
Request
-
host_id: string
host_id
-
repo_id:.*: string
repo_id:.*
-
Authorization: apiKey
Type:
apiKey
Response
- application/json
200 Response
Default Response
Examples
The following example shows how to delete a specific image. You perform this task by submitting a DELETE request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "DELETE"
-H "Authorization: Bearer b39f09c71c297f1d"
"https://rest_server_url/api/v2/images/oraclelinux:6.6/hosts/host_id"
In this example:
-
oraclelinux
is the repository in the registry and6.6
is the optional container tag. If you do not include the tag, then Oracle Container Cloud Service assumes the value of the tag islatest
. -
Replace host_id with the actual value. If you do not know the host_id, then submit a GET request to the
/api/hosts/
endpoint.