> For the complete documentation index, see [llms.txt](https://tribui141108.gitbook.io/nocli-handler.js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tribui141108.gitbook.io/nocli-handler.js/guides/commands/deleting-a-command.md).

# Deleting a Command

In case you do not want the user to run some commands to the bot, you might want to temporarily "delete" the command without deleting the command file.

### How to "delete" the command?

You will have to insert the "delete" variable and set it to `true`.

{% tabs %}
{% tab title="JavaScript" %}
{% code title="ping.js" %}

```javascript
const { NoCliCommandType } = require("nocli-handler.js");

/**
 * @type {import("nocli-handler.js").ICommand}
 */
const Command = {
    delete: true, // <-- Temporarily "deletes" the command.
    type: NoCliCommandType.Both, //    Works for Slash commands also
    description: "Checks client latency",
    callback: ({ client, message, args, text }) => {
        return `🏓 Pong! \`${client.ws.ping}ms\``
    }
}

module.exports = Command;
```

{% endcode %}
{% endtab %}

{% tab title="TypeScript" %}

```typescript
import { ICommand, NoCliCommandType } from "nocli-handler.js";

export default {
    delete: true, // <-- Temporarily "deletes" the command
    type: NoCliCommandType.Both, //    Works for Slash Commands also
    description: "Ping",
    callback: ({ client, message, args, text }) => {
        return `🏓 Pong! \`${client.ws.ping}ms\``;
    }
} as ICommand;
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
This feature is currently being improved. Expect the future version to have its full features.
{% endhint %}
