---
title: "Action clear_constant"
description: "Clears constants and related context by key prefixes."
---

# Action `clear_constant`

> **System ID:** `action_clear_constant`

## Description

Deletes dialog constants whose keys start with the specified prefixes (comma-separated). Also clears matching entries in the dialog context. An empty `module_name` deletes nothing.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **success** | Clearing completed |

## Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `module_name` | string | no | `""` | Key prefixes, comma-separated (e.g. `payment,order`) |

## Configuration example

```json
{
  "module_name": "payment,order,cart"
}
```

## Related docs

- [Actions reference](/en/actionjail/reference/actions-reference.md)
