Update REST-cheatsheet.md documentation
Added:
- Deleting images from the system.
Change-Id: Ia674a0e9309ed6a14bfde1d8fb61da7d0b3789c7
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/REST-cheatsheet.md b/REST-cheatsheet.md
index 847a6c9..699f017 100644
--- a/REST-cheatsheet.md
+++ b/REST-cheatsheet.md
@@ -58,6 +58,18 @@
$ curl -b cjar -k -H 'Content-Type: application/json' -X POST -d '{"data":[]}' https://${bmc}/xyz/openbmc_project/dump/action/DeleteAll
```
+* Delete images from system:
+
+ - Delete image:
+ ```
+ $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data": []}' https://${bmc}/xyz/openbmc_project/software/<image id>/action/Delete
+ ```
+
+ - Delete all non-running images:
+ ```
+ $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data": []}' https://${bmc}/xyz/openbmc_project/software/action/DeleteAll
+ ```
+
* Clear gard records:
```
$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data":[]}' https://${bmc}/org/open_power/control/gard/action/Reset