How it works
- Pass the dictionary, or JSON text, and the key to remove.
- It returns the new dictionary, how many entries are left, and whether anything was removed.
- Removing a key that isn't there is not an error; it just reports nothing was removed.
Routines that use it
Forget an app
Remove an app from your remembered per-app settings and remember the smaller dictionary again.
Drop a field before sending
Remove a private entry before posting the data with Send webhook.
Clean saved data
Read a JSON file, remove an old key and write it back with Write JSON value.
Settings
| Setting | What it does |
|---|---|
| Dictionary | The dictionary. |
| Key | The name of the entry. |
Good to know
- One key per step; to remove several, use it inside a Repeat.
Questions
- Does Remove dictionary key change the original?
- No. Every dictionary step returns a new copy and leaves its input untouched.
- How do I know if the key was removed?
- Check the removed result. It's false when the key wasn't there.