# Exclude files and folders from uploading and downloading

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

Exclude files and folders from upload, download, and synchronization to prevent accidental updates during file transfers. Excluding media, caches, and temporary files that you do not need also reduces unnecessary transfers and resource use.

You may need to exclude files and folders in the following cases:

1. You work with source code created and uploaded outside GoLand. Download the files you need and open them as a project. Exclude source files that should not be updated and remote media, caches, or temporary files that you do not need.

2. You have already downloaded files from the server and opened them as a project in GoLand. Exclude files or folders to prevent later uploads or downloads from overwriting the copies you want to keep.

3. Your local application contains source code and other files that the server does not need. Exclude those files from upload, and exclude any source files that should not be overwritten during transfers.

Use Excluded Paths in a deployment configuration to exclude specific files or folders. Use Exclude items by name in the deployment options to exclude matching file and folder names across configurations.

> **Note:**
> Exclusions control file transfers in GoLand. They do not change file permissions or restrict access to files on the server.

> **Note:**
> In any case, exclusion is applied recursively. If the path to a folder is explicitly marked as excluded or the folder name matches the pattern, the contents of all its subfolders, if any, are also protected against upload/download.

## Exclude a folder on server from upload/download after project creation

Procedure: Add a folder to the list of excluded paths

1. Open the [Deployment](settings-deployment.html) dialog by doing one of the following:

* Choose `Tools | Deployment | Configuration` from the main menu.

* In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))), select Deployment under Build, Execution, Deployment.

2. In the [Deployment](settings-deployment.html) dialog, click the [Excluded Paths](deployment-excluded-paths-tab.html) tab. The tab shows the list of the previously excluded local and remote folders.

3. Click the Add button ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) and select Deployment path.

4. Double-click the empty line that is added to the list.

5. At the end of the added line, click the Browse button ![the Browse button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.open.svg).

6. In the Choose remote excluded path dialog, navigate to the folder that you want to exclude.

You can also type the path manually, but note that only absolute paths are accepted.

7. Confirm the selected path, then click OK to save the deployment configuration.

Procedure: Add a folder to the list of excluded paths in the Remote Host tool window

1. In the main menu, go to `Tools | Deployment | Browse Remote Host` or `View | Tool Windows | Remote Host` .

2. In the  [Remote Host](remote-host-tool-window.html) tool window that opens, select the relevant [server configuration](configuring-synchronization-with-a-remote-host.html) from the list.

3. Select the folder to exclude and choose Exclude Path from the context menu of the selection.

## Exclude a local folder from upload/download

Procedure:

1. Open the [Deployment](settings-deployment.html) dialog by doing one of the following:

* Choose `Tools | Deployment | Configuration` from the main menu.

* In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))), select Deployment under Build, Execution, Deployment.

2. In the [Deployment](settings-deployment.html) dialog, click the [Excluded Paths](deployment-excluded-paths-tab.html) tab.

3. Click the Add button ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) and select Local path.

4. At the end of the added line, click the Browse button ![Browse button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.open.svg) and navigate to the folder that you want to exclude.

You can also type the path manually, but note that only absolute paths are accepted.

5. Click OK to save the deployment configuration.

## Exclude files and folders from upload/download by name

Procedure:

1. Open the [Options](settings-deployment-options.html) dialog by doing one of the following:

* Go to `Tools | Deployment | Options`.

* In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))), go to `Build, Execution, Deployment | Deployment | Options`.

2. In the [Options](settings-deployment-options.html) dialog that opens, specify the patterns that define the names of these files and folders in the Exclude items by name field.

Use semicolons `;` as delimiters, asterisks `*` to match zero or more characters, and question marks `?` to match a single character.

For example, if you have a folder `stylesheets` with three files `style.css`, `style1.css`, and `style2.scss`, then `style*` excludes the entire folder, `style?.css` excludes `style1.css`, and `style?.*` excludes `style1.css` and `style2.scss`.

Learn more from [Regular-Expressions.info](https://www.regular-expressions.info/quickstart.html).

The exclusion is applied recursively. This means that if a matching folder has subfolders, the contents of these subfolders are not deployed either.

## Remove the exclusion mark

Procedure:

* Select a file or folder to upload/download and choose Remove Path from Excluded from the context menu.

Returning a folder to upload/download affects all its subfolders and files.

## See also

### Language and Framework-Specific Guidelines

[Deployment](deploying-applications.html)  [Customize upload and download](customizing-upload.html)

### Reference

[Deployment: Excluded Paths Tab](deployment-excluded-paths-tab.html) [Options](settings-deployment-options.html) [Deployment](settings-deployment.html) [Remote Host tool window](remote-host-tool-window.html)

