> ## Documentation Index
> Fetch the complete documentation index at: https://help.maestra.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Remove Products from a Static Segment via Import

Need to take a batch of products out of a [static product segment](https://help.maestra.io/segments/how-to-create-a-static-product-segment.md)? Upload a file with the list and Maestra Platform removes them all at once. It's handy for migrating segments from another system, one-off catalog cleanups, and any other job where there's no direct integration.

To load up to 10 files for different segments in one go, use [bulk import](#bulk-import).

Imports run under **Customer Data Platform → Imports**. Click **New import** to open the settings.

## Step 1. Choose the import type

* Pick the import type — **Products → Static product segments**.
* Pick the action — **Remove products from a segment**.

Before you import, make sure the [static product segmentation](https://help.maestra.io/segments/how-to-create-a-static-product-segment.md) and the segment you need already exist in your account.

## Step 2. Prepare and upload the file

Work out which fields you need. The file has to contain at least one product or product group identifier.

| Field | System name | Required | Description |
| - | - | - | - |
| Product ID in *\{External system}* ProductGroup ID in *\{External system}* Maestra product ID | `Product{External_system}` `ProductGroup{External_system}` `ProductMindboxId` | ✅ At least one | The product's or product group's ID in an external system on your account. |
| Segmentation external ID | `SegmentationExternalId` | Yes, unless set in the import settings | The segmentation the products are removed from |

> [!WARNING]
>
> Don't pass a segment external ID — in either the import settings or the file. If you do, the products won't be removed from the segmentation.

> [accordion] How to find the segmentation ID
>
> 1. Go to **Customer Data Platform → Segments**.
> 2. Find the static product segmentation you need and click its name.
> 3. Click **More** to expand the details. The ID is in the **External ID** field.

Export the data from your source system and build the file. Use the first row for field names — the wording is up to you.

* Format: `.csv` or `.txt`.
* Recommended encoding: UTF-8.
* Check that the values match the allowed formats.

See [Preparing a file for import](https://help.maestra.io/import-data/preparing-a-file-for-import.md) for the full set of recommendations.

Upload the file and click **Continue**.

## Step 3. Map the file's fields

Maestra Platform maps the file's columns to its own fields automatically. Check the result and adjust it by hand if you need to:

* In the **Import** column, tick the fields you want to load. Unticked columns are skipped.
* In the **Maestra field** column, map each file column to a field on the account. Optional fields left unmapped are skipped.

Click **Continue**.

## Step 4. Choose the segmentation

Pick the segmentation to remove the products from. If the segmentation ID is already in the file, you can skip this step.

* **Set it in the import settings** — pick the segmentation, and every product in the file leaves it.
* **Set it in the file** — add a column with the segmentation external ID and skip this step in the settings. You'll find the ID under [Segments](#step-2-prepare-and-upload-the-file).

When the segmentation is set in both the import settings and the file, the file wins.

## Step 5. Review and start the import

Before you start, Maestra Platform shows the first rows of the file with the mapping already applied. Check that the data looks the way you expect — that the right values landed in the right fields. Add an import comment if you need one.

If everything's correct, click **Start import**.

## How to track the import

Once started, the import appears in the list on the **Import** page. For each task you'll see:

* start date,
* import type,
* source file with its comment,
* load progress,
* rows imported and errors,
* who started it.

If errors came up during the import, some rows were skipped. Open the import details to see which rows had a problem and why. Fix them in the file and run the import again.

## Bulk import

Bulk import lets you upload up to 10 files at once. Each file runs as its own import in the list. Field mapping, extra settings, and the preview are skipped — fields are matched by their system names.

### Step 1. Prepare the files

In the first row of each file, use Maestra Platform system names instead of your own field names. You'll find them in the [field table](#step-2-prepare-and-upload-the-file).

You can set the segmentation for each file in two ways:

* **In the file** — add a column with the segmentation's system name.
* **In the import settings** — pick the segmentation from the dropdown for each file.

When the segmentation is set in both the file and the page, the file wins. See [how to find the segmentation ID](#step-2-prepare-and-upload-the-file).

### Step 2. Upload the files and start the import

1. Choose the [import type](#step-1-choose-the-import-type).
2. Turn on the **Bulk import** setting.
3. Upload the files.
4. For each file, pick the segmentation if it isn't set in the file.
5. Click **Start import**.

## The result

Once the task finishes, the products are removed from the segmentation.

To put products into a segment, see [How to add products to a static segment via import](https://help.maestra.io/import-data/products/static-segment/how-to-add-products-to-a-static-segment-via-import.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.