Handle the `-f` option in `_drop` functions allowing to remove a repository or a snapshot that has references