# 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
