# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
