From 554fb09fa4e01b7cf3c60e853600bd1cfe97d5f7 Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Wed, 6 Dec 2017 16:31:52 -0600 Subject: Add information about deleting an image Change-Id: If459078d3ad702e5c32a6f4621f76b96936a7a68 Signed-off-by: Gunnar Mills --- code-update/ubi-code-update.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'code-update') diff --git a/code-update/ubi-code-update.md b/code-update/ubi-code-update.md index 1fb233c..15eef7b 100644 --- a/code-update/ubi-code-update.md +++ b/code-update/ubi-code-update.md @@ -242,6 +242,28 @@ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X GET \ } ``` +### Deleting an Image + +To delete an image: + +``` +curl -c cjar -b cjar -k -H "Content-Type: application/json" \ + -X POST https://${bmc}/xyz/openbmc_project/software/<$id>/action/delete \ + -d "{\"data\": [] }" +``` + +Note: The image must be non-functional ("non-running"). + +To delete all non-functional images, whether BMC or host images: + +``` +curl -c cjar -b cjar -k -H "Content-Type: application/json" \ + -X POST https://${bmc}/xyz/openbmc_project/software/action/deleteAll \ + -d "{\"data\": [] }" +``` + + + ### Implementation More information about the implementation of the UBI code update can be found at -- cgit v1.2.3