def delete(request)
      name = request.path.last

      if cookbook = store.find(name)
        store.remove(cookbook)
        respond({})
      else
        respond(404,
          {
            'error_code' => 'NOT_FOUND',
            'error_messages' => ['Resource not found'],
          }
        )
      end
    end
def delete(request)
      name = request.path.last

      if cookbook = store.find(name)
        store.remove(cookbook)
        respond({})
      else
        respond(404,
          {
            'error_code' => 'NOT_FOUND',
            'error_messages' => ['Resource not found'],
          }
        )
      end
    end
DELETE /cookbooks/:name