Question: As described in the title I would like to exclude some files from syncing to my (personal) OneDrive to save some space.
I have some folders that I wish to sync but in some of them there are quite large video files which I do not want to sync.

I found [this documentation](https://docs.microsoft.com/en-us/onedrive/block-file-types) from microsoft but I do not have the "Sync" option after I click on the "OneDrive admin center" link.

Also I found [this question](https://superuser.com/questions/1329689/how-to-exclude-a-specific-file-or-directory-from-onedrive-within-the-onedrive-fo) but the answer no longer works.

Answer: 
OneDrive added this feature a short while ago. Well somewhat. If you are using the OneDrive insider preview you can do this:

Copy `%LOCALAPPDATA%\Microsoft\OneDrive\{OneDriveVersion}\adm` `OneDrive.adml` (language file) to `C:\Windows\PolicyDefinitions\en-US` and the `OneDrive.admx` to `C:\Windows\PolicyDefinitions`.

Then in the Group Policy Editor (gpedit.msc) go to Computer Configuration -> Administrative Templates -> All Settings and find `Exclude specific kinds of files from being uploaded`. Now there you can specify specific file types or file names to ignore.

See also <https://senpai.club/exclude-file-types/> and <https://techcommunity.microsoft.com/t5/microsoft-onedrive-blog/celebrating-the-top-onedrive-moments-from-microsoft-ignite-2020/ba-p/1679821>
Go to this folder

```
\AppData\Local\Microsoft\OneDrive\settings\Business1

```

Open this file

```
ClientPolicy.ini

```

and on the line

```
FilenameExclusionList = |~|.bin|.cache|node_modules|

```

Put the filename or folders names that you want to skip sync