How to refactor a directory of dvc managed files?

I have a case where I created a directory of files that are individually managed by DVC (so there are a number of files, each with a corresponding .dvc file). I’d like to refactor this so that I just tell DVC to managed the entire directory and all of its contents to get rid of all those .dvc files cluttering things up.

I also have this situation in the recursive case (I’d like to tell DVC to just manage a directory parent and all ancestor contents).

What is the correct way to do this?

@dvc.grasshopper I think you can get rid of all the .dvc files and do dvc add directory instead. That should be it.

Ok, thanks. I will try that!