diff options
-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 |