diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2017-12-06 16:31:52 -0600 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2017-12-12 18:57:03 -0600 |
commit | 554fb09fa4e01b7cf3c60e853600bd1cfe97d5f7 (patch) | |
tree | 4b5e839fdebaaf995f22acd9a2f074ba5aec4d45 | |
parent | a5bf317d81f5a4d583c9598ad8b000e9f6e218f1 (diff) | |
download | openbmc-docs-554fb09fa4e01b7cf3c60e853600bd1cfe97d5f7.tar.gz openbmc-docs-554fb09fa4e01b7cf3c60e853600bd1cfe97d5f7.zip |
Add information about deleting an image
Change-Id: If459078d3ad702e5c32a6f4621f76b96936a7a68
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r-- | code-update/ubi-code-update.md | 22 |
1 files changed, 22 insertions, 0 deletions
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 |