Skip to content

Instantly share code, notes, and snippets.

@zack-shoylev
Last active December 22, 2015 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zack-shoylev/6518031 to your computer and use it in GitHub Desktop.
Save zack-shoylev/6518031 to your computer and use it in GitHub Desktop.
Deletes the jclouds-created node
System.out.println("ENTER to delete node");
s.nextLine();
try {
Set<? extends NodeMetadata> servers = compute.destroyNodesMatching(inGroup("jclouds-workshop"));
for (NodeMetadata nodeMetadata: servers) {
System.out.println(" " + nodeMetadata);
}
}
catch (Throwable e) {
e.printStackTrace();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment