Public IPs
az resource delete --ids $(az network public-ip list --query '[?ipAddress==`null`].[id]' -o tsv)
Network Security Groups
az resource delete --ids $(az network public-ip list --query '[?ipAddress==`null`].[id]' -o tsv)
Network Interfaces
az resource delete --ids $(az network nic list --query '[?virtualMachine==`null` && privateEndpoint==`null`].[id]' -o tsv)
Disks
az resource delete --ids $(az disk list --query '[?managedBy==`null`].[id]' -o tsv)