I have a directory A/ containing a Pipfile and a Pipfile.lock obtained by running pipenv install. So this directory has a corresponding virtualenv at /home/username/.local/share/virtualenvs/A-....
Then I delete this A/ directory. Is there a way to check all pipenv virtualenvs, find directories that were deleted and remove the corresponding virtualenvs ?
In this case it should find that A/ was deleted and so remove the virtualenv: /home/username/.local/share/virtualenvs/A-....