Create single query method that takes path
  This removes the duplicate for the list and delete queries