> ## 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

> 清除当前 Windows console screen buffer，隐藏 console window，并使用 console detachment 将进程从 console 分离。如果不存在 console window，该调用会直接返回且不执行任何操作。

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

  ## 别名

  * `consoledestroy`

  ## 示例

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

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