The following command will delete all snapshots from all volumes of all vservers.
get-ncsnapshot -volume * -vserver * | remove-NcSnapshot -confirm
The command can be modified to delete specific volume snapshot by specifying value of the volume
get-ncsnapshot -volume <value> -vserver * | remove-NcSnapshot -confirm
If the snapshot has a pattern (like snapshots created by CommVault backups) then the command can be modified something like this:
get-ncsnapshot -volume <value> -vserver * |?{$_.name -like "SP_*"}| remove-NcSnapshot -confirm
get-ncsnapshot -volume * -vserver * | remove-NcSnapshot -confirm
The command can be modified to delete specific volume snapshot by specifying value of the volume
get-ncsnapshot -volume <value> -vserver * | remove-NcSnapshot -confirm
If the snapshot has a pattern (like snapshots created by CommVault backups) then the command can be modified something like this:
get-ncsnapshot -volume <value> -vserver * |?{$_.name -like "SP_*"}| remove-NcSnapshot -confirm
No comments:
Post a Comment