What to expect
- Ignored files won’t sync to dropbox.com or other devices. They stay local on your computer.
- Files already synced won’t be removed from dropbox.com. You can delete them manually if needed.
- Files added remotely from another device that match your rules won’t sync to your computer.
- The rules.dropboxignore file stays local and won’t sync across your devices.
- Ignore rules only apply to new files going forward.
- Newly created folders that match a rule are fully ignored. If a new folder matches an existing ignore rule, then the folder and it’s content won’t sync to dropbox.com.
- If a folder already existed before the rule was created, its content will continue to sync normally.
- New files get ignored if they are added to an ignored folder.
Renaming ignored files
If you ignore all .txt files and have a .txt file that was already synced, renaming it locally on your device will change its name from file.txt to renamed.txt. This will result in renamed.txt being ignored and file.txt being deleted on dropbox.com.
If you ignore all .txt files and have a file called file.txt that was already synced, renaming it on dropbox.com will change its name from file.txt to renamed.txt.
Differences between rules in Dropbox and Git
There are differences between Git’s and Dropbox’s ignore rules. These differences are reflected in the current beta and may change.
The rule gitignore controls what Git tracks, while rules.dropboxignore controls what Dropbox syncs.
Ignore rules in Dropbox
- The rules.dropboxignore file is local-only and doesn’t sync between devices. You’ll need to create it on each computer if you want the same rules everywhere.
- Adding an ignore rule won’t delete files that are already on dropbox.com.
- You can remove these files manually from your computer’s Dropbox folder or the Dropbox desktop app.
- If you’d like the ignore rules to apply to previously added files, delete those files and add them back.
- Dropbox doesn’t support ignore files located outside of the Dropbox root folder.
How to remove previously synced files
Files already synced won’t be removed from dropbox.com. You can remove them manually if needed. To do so:
Dropbox desktop app
- Click ☑ (Dropbox icon) in your taskbar (Windows) or menu bar (Mac).
- Click ☑ (folder) and navigate to the folder you’d like to remove the synced files from.
- Drag the existing file or folder outside of Dropbox and on to your Desktop.
- Drag the file from your Desktop back into the folder inside the folder in Dropbox.