# File lib/rhc/commands/domain.rb, line 88 def delete(namespace) domain = rest_client.find_domain namespace say "Deleting domain '#{namespace}' ... " begin domain.destroy rescue RHC::Rest::ClientErrorException #FIXME: I am insufficiently specific raise RHC::Exception.new("Your domain contains applications. Delete applications first.", 128) end success "deleted" 0 end