> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# rconsoledestroy

> Clears the current Windows console screen buffer, hides the console window, and detaches the process from the console from the console. If no console window exists, the call returns without doing anything.

<div className="real-function-page">
  ```lua theme={null}
  rconsoledestroy()
  ```

  ## Aliases

  * `consoledestroy`

  ## Example

  Clear and hide the current console, then detach from it.

  ```lua theme={null}
  rconsolecreate()
  rconsoleprint("Console closing")
  rconsoledestroy()
  ```
</div>
