> ## Content Index
> Fetch the complete content index at: https://blog.esadax.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Exclude Files from Deployments with .Esadaxignore
- URL: https://blog.esadax.com/en/exclude-files-from-deployments-with-esadaxignore-2/
- Published: 2026-11-15T05:16:45.000Z
- Updated: 2026-11-15T05:16:45.000Z
- Author: Esadax 
- Tags: #tr-ci-09-deployments-04-esadax-ignore, #en, #mdx-imported, CI

The `.Esadaxignore` file is a powerful tool for managing deployments on Esadax. It allows you to specify which files and directories should be excluded during the deployment process.

## Overview

The `.Esadaxignore` file works similarly to a `.gitignore` file but is specific to Esadax. By placing this file in your project's root directory, you can exclude certain files and directories from being uploaded or served on Esadax.

## How It Works

1. **Default Exclusions**: All files are excluded by default unless specified otherwise.
2. **Including Files**: To include a file or directory, add its name prefixed with `!` in the `.Esadaxignore` file.
3. **Structure**: The file should be placed at the root level of your project.

## Example Usage

To exclude specific files and directories:

```text
.Esadaxignore image private.html

```

This will prevent the `/image` directory and `/private.html` file from being uploaded.

## Advanced Use Cases

- **Allowing Specific Files**: Add `!file_name` to allow a specific file.
- **Combining Rules**: Use multiple lines to create complex rules.

**Ignoring All Files**: Start with `/*` to ignore all files in the root directory.

```text
.Esadaxignore /*

```

## Monorepos and Workflows

- In a monorepo, the `.Esadaxignore` file at the project root takes precedence over any other configuration.
- If no `.Esadaxignore` is found, Esadax uses the one at the root level.

## Best Practices

1. **Security**: Use it to protect sensitive files like `private.html`.
2. **Efficiency**: Upload only necessary files, reducing deployment size and improving speed.
3. **Compliance**: Ensure compliance with specific project requirements by excluding unnecessary files.

By leveraging the `.Esadaxignore` file, you can streamline your deployment process while keeping your project secure and efficient.