> For the complete documentation index, see [llms.txt](https://docs.hyperdbg.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperdbg.org/commands/scripting-language/functions/events/flush.md).

# flush

### Function

> flush

### Syntax

> flush( );

### Parameters

No argument.

### Description

Flushes the logs created within script engine events.

### Examples

`flush();`

Removes all the script logs that are waiting to be delivered.

### Remarks

This function is equivalent to the '[flush](https://docs.hyperdbg.org/commands/debugging-commands/flush)' command in the script engine.

### Related

None
