For the complete documentation index, see llms.txt. This page is also available as Markdown.

Removing available images

You can remove unused or old images from the device to optimize disk utilization using the "cleanup-images" and "remove-image" commands.

Reference

Command

remove-image < image_name>

Description

Remove specific image from the switch

Parameters

ImageName - Can be obtained from "show

boot"

Mode

EXEC

CLI Example

pbnoscli# remove-image <image-name>
//Example - remove-image SONiC-OS-2.1.1_RELEASE.0-dirty-20220718.065117

Reference

Command

cleanup-images

Description

Remove all available images from the switch

Parameters

ImageName - Can be obtained from "show

boot"

Mode

EXEC

pbnoscli#cleanup-images