> For the complete documentation index, see [llms.txt](https://more-about-angular.gitbook.io/artyom-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://more-about-angular.gitbook.io/artyom-js/api/untitled-5.md).

# emptyCommands

移除artyom中所有已加载的命令

就像你可以向artyom中添加命令一样，你也可以移除他们。使用 emptyCommands 方法所有已加载的命令：

```javascript
let artyom = new Artyom();

//Clear all the available commands of artyom
artyom.emptyCommands();

//Then retrieve 
var commands = artyom.getAvailableCommands();
console.log(commands); // Ouputs : []
```
