From dbae5337361a50fbc521fd465f54a56003e5ba78 Mon Sep 17 00:00:00 2001 From: ggouzi Date: Mon, 8 Jan 2024 23:03:35 +0100 Subject: [PATCH 1/2] doc: Add paragraph on how to delete images Signed-off-by: ggouzi --- doc/howto/images_manage.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/howto/images_manage.md b/doc/howto/images_manage.md index 15c0fd382c20..b2346e561a8d 100644 --- a/doc/howto/images_manage.md +++ b/doc/howto/images_manage.md @@ -67,6 +67,16 @@ To edit the full image properties, including the top-level properties, enter the lxc image edit +## Delete an image +To delete an image on a server, enter the following command: + + lxc image delete + +Deleting an image won't affect running instances that are already using it, but it will remove the image locally. + +After deletion, if the image was downloaded from a remote server, it will be removed from local cache and downloaded again on next use. +However, if the image was manually created (not cached), the image will be deleted from LXD server. + ## Configure image aliases Configuring an alias for an image can be useful to make it easier to refer to an image, since remembering an alias is usually easier than remembering a fingerprint. From 8adcd9aebf9bf42f9e0337979fde66916c8475cf Mon Sep 17 00:00:00 2001 From: ggouzi Date: Wed, 17 Jan 2024 22:22:50 +0100 Subject: [PATCH 2/2] doc: add paragraph on how to delete images Signed-off-by: ggouzi --- doc/howto/images_manage.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/howto/images_manage.md b/doc/howto/images_manage.md index b2346e561a8d..349285b47080 100644 --- a/doc/howto/images_manage.md +++ b/doc/howto/images_manage.md @@ -68,14 +68,15 @@ To edit the full image properties, including the top-level properties, enter the lxc image edit ## Delete an image -To delete an image on a server, enter the following command: + +To delete a local copy of an image, enter the following command: lxc image delete Deleting an image won't affect running instances that are already using it, but it will remove the image locally. After deletion, if the image was downloaded from a remote server, it will be removed from local cache and downloaded again on next use. -However, if the image was manually created (not cached), the image will be deleted from LXD server. +However, if the image was manually created (not cached), the image will be deleted. ## Configure image aliases