dvc documentation for dvc gc
command states, the -r
option indicates "Remote storage to collect garbage in" but I'm not sure if I understand it correctly. For example I execute this command:
dvc gc -r myremote
What exactly happens if I execute this command? I have 2 possible answers:
- dvc checks which files should be deleted, then moves these files to "myremote" and then deletes all these files in local cache but not in remote.
- dvc checks which files should be deleted and deletes these files both in local cache and "myremote"
Which one of them is correct?