def undefine(definition_name, options = {})
      definition = env.definitions[definition_name]
      unless definition.nil?

        #TODO: Needs to be more defensive!!
        env.logger.debug("[Undefine] About to remove '#{definition.path} for '#{definition_name}'")
        begin
          if File.exists?(File.join(definition.path, "definition.rb"))
            FileUtils.rm_rf(definition.path)
          else
            env.logger.fatal("Aborting delete: The directory definition.path does not contain a definition.rb file")
            raise Veewee::DefinitionError, "Aborting delete: The directory definition.path does not contain a definition.rb file"
          end
        rescue Exception => ex
          env.logger.fatal("Removing '#{definition.path} for '#{definition_name}' failed: #{ex}")
          raise Veewee::Error, "Removing '#{definition.path }for '#{definition_name}' failed: #{ex}"
        end
        env.logger.debug("Removing '#{definition.path} for '#{definition_name}' succesful")
      else
        raise Veewee::DefinitionError, "Definition '#{definition_name}' does not exist"
      end
    end
def undefine(definition_name, options = {})
      definition = env.definitions[definition_name]
      unless definition.nil?

        #TODO: Needs to be more defensive!!
        env.logger.debug("[Undefine] About to remove '#{definition.path} for '#{definition_name}'")
        begin
          if File.exists?(File.join(definition.path, "definition.rb"))
            FileUtils.rm_rf(definition.path)
          else
            env.logger.fatal("Aborting delete: The directory definition.path does not contain a definition.rb file")
            raise Veewee::DefinitionError, "Aborting delete: The directory definition.path does not contain a definition.rb file"
          end
        rescue Exception => ex
          env.logger.fatal("Removing '#{definition.path} for '#{definition_name}' failed: #{ex}")
          raise Veewee::Error, "Removing '#{definition.path }for '#{definition_name}' failed: #{ex}"
        end
        env.logger.debug("Removing '#{definition.path} for '#{definition_name}' succesful")
      else
        raise Veewee::DefinitionError, "Definition '#{definition_name}' does not exist"
      end
    end
This function undefines/removes the definition by removing the directoy with definition_name
 under env.definition_dir