Skip to content

Instantly share code, notes, and snippets.

@stevendanna
Created September 30, 2011 20:57
Show Gist options
  • Save stevendanna/1254950 to your computer and use it in GitHub Desktop.
Save stevendanna/1254950 to your computer and use it in GitHub Desktop.
Delete node named "new"
# Run the following commands in Shef
sillynode = nodes.all { |n| n if n.name == "new" }
sillynode.compact!
sillynode = sillynode[0]
sillynode.destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment