Add information about deleting an image
Change-Id: If459078d3ad702e5c32a6f4621f76b96936a7a68
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
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 @@
}
```
+### 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