# ErrorAction

say it: **“AIR-er AK-shun”** **/ˈɛrər ˈækʃən/**

Controls what a command does on error: continue, stop or stay silent.

## What is **ErrorAction**?

`-ErrorAction` sets what a command does on error: `Continue` (show it and carry on, the default), `Stop` (turn it into a catchable error) or `SilentlyContinue` (hide it).

```powershell
Remove-Item .\temp -Recurse -ErrorAction SilentlyContinue
```

Level: Journeyman · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/erroraction
