def delete
      uniques = {}
      model.uniques.each do |field|
        next unless (value = send(field))
        uniques[field] = value.to_s
      end

      script(LUA_DELETE, 0,
        { "name" => model.name,
          "id" => id,
          "key" => key.to_s
        }.to_json,
        uniques.to_json,
        model.tracked.to_json
      )

      return self
    end
def delete
      uniques = {}
      model.uniques.each do |field|
        next unless (value = send(field))
        uniques[field] = value.to_s
      end

      script(LUA_DELETE, 0,
        { "name" => model.name,
          "id" => id,
          "key" => key.to_s
        }.to_json,
        uniques.to_json,
        model.tracked.to_json
      )

      return self
    end
Delete the model, including all the following keys:

 - <Model>:<id>
 - <Model>:<id>:counters
 - <Model>:<id>:<set name>

 If the model has uniques or indices, they're also cleaned up.