DeleteContext
Common Scripts Pack.#
This Script is part of theDeletes fields from context.
#
PermissionsThis automation runs using the default Limited User role, unless you explicitly change the permissions. For more information, see the section about permissions here: https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.10/Cortex-XSOAR-Administrator-Guide/Automations
#
Script DataName | Description |
---|---|
Script Type | javascript |
Tags | Utility |
#
InputsArgument Name | Description |
---|---|
key | The key to delete from the context. |
all | Whether all context will be deleted. |
subplaybook | Whether the context key is inside of a sub-playbook. Use auto to delete either from the sub-playbook context (if the playbook is called as a sub-playbook) or from the global context (if the playbook is the top playbook). |
keysToKeep | The context keys to keep when deleting all context. Supports comma-separated values and nested objects. For example, "URL.Data" and "IP.Address". |
index | The index to delete in case the 'key' argument was specified. |
#
OutputsThere are no outputs for this script.