# Google Drive. Error when remove file

**URL:** <https://discuss.dvc.org/t/google-drive-error-when-remove-file/1626>\
**Category:** Bug Reports\
**Created:** [April 26, 2023, 7:42am UTC](https://discuss.dvc.org/t/google-drive-error-when-remove-file/1626 "2023-04-26T07:42:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonTroitskii](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@AntonTroitskii](https://discuss.dvc.org/u/AntonTroitskii)\
**Post date:** [April 26, 2023, 7:42am UTC](https://discuss.dvc.org/t/google-drive-error-when-remove-file/1626/1 "2023-04-26T07:42:40Z")

</div>

Hi everyone,

I use google drive sync my project through 2 PC.

When I start dvc repro on the second PC I encounter with an error.

> Running stage ‘prepare’:  
> python src/prepare.py data/init/titanic.zip  
> ERROR: failed to transfer ‘215b31ab1267ed29ee90047a9000c317’ - [WinError 1] Incorrect function: ‘H:\My Drive\dev\data\04.dvc\…\data\prepared\prep\_test.cvs’ → ‘H:\My Drive\dev\data\04.dvc\…\.dvc\cache\21\5b31ab1267ed29ee90047a9000c317’  
> ERROR: failed to transfer ‘029c9cd22461f6dbe8d9ab01def965c6’ - [WinError 1] Incorrect function: ‘H:\My Drive\dev\data\04.dvc\…\data\prepared\pred.cvs’ → ‘H:\My Drive\dev\data\04.dvc\…\.dvc\cache\02\9c9cd22461f6dbe8d9ab01def965c6’  
> ERROR: failed to transfer ‘ab648f384a377a0a1a11a5b12a99b933’ - [WinError 1] Incorrect function: ‘H:\My Drive\dev\data\04.dvc\…\data\prepared\prep\_train.cvs’ → ‘H:\My Drive\dev\data\04.dvc\…\.dvc\cache\ab\648f384a377a0a1a11a5b12a99b933’  
> file/directory ‘H:\My Drive\dev\data\04.dvc..\data\prepared\prep\_train.cvs’ is going to be removed. Are you sure you want to proceed? [y/n]

I guess that problem is permission of folders, but I can’t find for new version of GD an ability to change a permission. There is no well known ability to change the permision of directory or files.

![image](https://canada1.discourse-cdn.com/flex035/uploads/dataversioncontrol/original/1X/f3d7ee54e2fe4e8e993dcb00f0ca98c30c766d19.png)

Does anyone anyone encountered with the same problem?

---

<div class="post-metadata">

**Author:** ![skshetry](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@skshetry](https://discuss.dvc.org/u/skshetry)\
**Post date:** [April 28, 2023, 3:47am UTC](https://discuss.dvc.org/t/google-drive-error-when-remove-file/1626/2 "2023-04-28T03:47:59Z")

</div>

Is GD - Google Drive? You can try moving dvc repo or dvc’s cache to a location where you have write permissions.

```console
dvc cache dir /dir/where/you/have/write/permissions

```

See [cache dir](https://dvc.org/doc/command-reference/cache/dir).

---

<div class="post-metadata">

**Author:** ![AntonTroitskii](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@AntonTroitskii](https://discuss.dvc.org/u/AntonTroitskii)\
**Post date:** [May 3, 2023, 1:43pm UTC](https://discuss.dvc.org/t/google-drive-error-when-remove-file/1626/3 "2023-05-03T13:43:04Z")

</div>

Thank you fro your reply.

I guess this setting of cache directory will be applyied on the another pc bacause of Google Drive syncing.
