> For the complete documentation index, see [llms.txt](https://docs.datajet-app.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datajet-app.com/liquid/filters/remove_prop.md).

# remove\_prop

Removes a property from an object. Modifies the object in place and returns it.

```liquid
{% assign cleaned = product_data | remove_prop: "internal_notes" %}
{% log cleaned %}
```

#### Syntax

```liquid
{{ object | remove_prop: property_name }}
```

| Parameter       | Description                        |
| --------------- | ---------------------------------- |
| `object`        | Object to remove the property from |
| `property_name` | Name of the property to delete     |

#### Return Value

Returns the object with the specified property removed.

#### Examples

**Remove sensitive data before logging:**

```liquid
{% assign safe_data = api_response | remove_prop: "api_key" %}
{% log safe_data %}
```

**Clean up an object before sending to an API:**

```liquid
{% assign payload = order_data | remove_prop: "internal_id" %}
{% assign payload = payload | remove_prop: "debug_info" %}
{% log payload %}
```

**Remove a temporary property:**

```liquid
{% assign row = row | remove_prop: "_processed" %}
{% log row %}
```

**Strip metadata before returning from a function:**

```liquid
{% assign result = data | remove_prop: "_metadata" %}
{% assign result = result | remove_prop: "_timestamp" %}
{% return result %}
```

#### Notes

* Modifies the object in place — the property is permanently deleted
* Returns the object unchanged if the property does not exist
* Returns the input unchanged if it is not an object
* Only removes top-level properties — does not support dot notation for nested properties


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.datajet-app.com/liquid/filters/remove_prop.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
