Created
April 22, 2015 14:55
-
-
Save chrismeyersfsu/3e3f37ee6423f9f75375 to your computer and use it in GitHub Desktop.
azure cleanup unattached disks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
disks = azure.list_disks() | |
for disk in disks: | |
if disk.attached_to is None: | |
azure.delete_disk(disk.name, True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment