Method: Fog::Compute::Linode::Server#destroy

Defined in:
lib/fog/linode/models/compute/server.rb

#destroyObject

[View source]

61
62
63
64
65
66
67
# File 'lib/fog/linode/models/compute/server.rb', line 61

def destroy
  requires :identity
  connection.linode_shutdown id
  disks.each { |disk| disk.destroy }
  wait_for { not disks? }
  connection.linode_delete id
end