Documentation for Image deletion
@@ -61,6 +61,7 @@ Image methods
- `add_alias` - Add an alias to the image.
- `delete_alias` - Remove an alias.
- `copy` - Copy the image to another LXD client.
+ - `delete` - Deletes the image.
Examples
--------
@@ -97,3 +98,13 @@ you may also want to `wait=True`.
>>> image = client.images.create(image_data, public=True, wait=True)
>>> image.fingerprint
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
+
+
+Finally, delete an image. As this is an asynchonous operation,
+you may also want to `wait=True`.
+
+.. code-block:: python
+
+ >>> image = client.images.get(
+ ... 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
+ >>> image.delete(wait=True)
