CmdID / az / az network / az network watcher / az network watcher packet-capture
az network watcher packet-capture delete
Delete a packet capture session. Azure CLI reference
2 examples 3 options Its page in the Azure CLI reference
Examples
Delete a packet capture session. This only deletes the session and not the capture file.
az network watcher packet-capture delete -n packetCaptureName -l westcentralusIdentify-nName of the packet capture session.-lLocation.Delete a packet capture session. (autogenerated)
az network watcher packet-capture delete --location westcentralus --name packetCaptureName --subscription MySubscriptionIdentify--locationLocation.--nameName of the packet capture session.--subscriptionName or ID of subscription.Options
--name, -nName of the packet capture session.--watcher-nameName of the network watcher.--watcher-rgName of the resource group the watcher is in.