unset_key - Liquid Filter Reference
On this page
Description
Removes a key from a map
| Property | Value |
|---|---|
| Return Type | map |
| Category | maps |
Examples
```liquid
{{ my_map | unset_key: “name” | json }} ```
Output: {"type":"dog"}
```liquid
{{ my_map | unset_key: “type” | json }} ```
Output: {"name":"Fido"}
```liquid
{{ my_map | unset_key: “breed” | json }} ```
Output: {"name":"Fido","type":"dog"}
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.