﻿---
title: Remove processor
description: The Remove processor removes a field (Remove) or removes a field and all its nested fields (Remove by prefix) from your documents. To remove a field: 
url: https://www.elastic.co/elastic/docs-builder/docs/3016/solutions/observability/streams/management/extract/remove
products:
  - Elastic Cloud Enterprise
  - Elastic Cloud Hosted
  - Elastic Cloud Serverless
  - Elastic Cloud on Kubernetes
  - Elastic Observability
  - Elastic Stack
  - Elasticsearch
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.3
---

# Remove processor
The **Remove** processor removes a field (**Remove**) or removes a field and all its nested fields (**Remove by prefix**) from your documents.
To remove a field:
1. Select **Create** → **Create processor**.
2. From the **Processor** menu, select **Remove** to remove a field or **Remove by prefix** to remove a field and all its nested fields.
3. Set the **Source Field** to the field you want to remove.

This functionality uses the Elasticsearch [Remove processor](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3016/reference/enrich-processor/remove-processor) internally, but you configure it in Streamlang. Streamlang doesn't always have 1:1 parity with the ingest processor options and behavior. Refer to [Processor limitations and inconsistencies](/elastic/docs-builder/docs/3016/solutions/observability/streams/management/extract#streams-processor-inconsistencies).

## YAML reference

In [YAML mode](/elastic/docs-builder/docs/3016/solutions/observability/streams/management/extract#streams-editing-yaml-mode), configure the remove processor using the following parameters. For the complete Streamlang syntax, refer to the [Streamlang reference](https://www.elastic.co/elastic/docs-builder/docs/3016/solutions/observability/streams/management/streamlang).

### Remove


| Parameter        | Type    | Required | Description                                               |
|------------------|---------|----------|-----------------------------------------------------------|
| `from`           | string  | Yes      | Field to remove.                                          |
| `ignore_missing` | boolean | No       | When `true`, skip this processor if the field is missing. |

```yaml
- action: remove
  from: attributes.temp_field
```


### Remove by prefix

Removes a field and all nested fields matching a prefix.
<note>
  The `where` clause is not supported on `remove_by_prefix`. You cannot use this processor inside condition blocks.
</note>


| Parameter | Type   | Required | Description                                                          |
|-----------|--------|----------|----------------------------------------------------------------------|
| `from`    | string | Yes      | Prefix to match. The processor removes all fields under this prefix. |

```yaml
- action: remove_by_prefix
  from: attributes.debug
```