# removeMenuItem

## tt. removeMenuItem(Object param)

Remove workbench widget menu item.

## input

param inherits from [standard object input](https://open.feishu.cn/document/uAjLw4CM/uYjL24iN/block/api/standard-object-input), extended attribute description:

| **Attribute** | **Type** | **Default Value** | **Required** | **Description** |
| ------ | ------ | ------- | ------ | -------- |
| key | string | - | is | the unique identifier of the menu item |

## output

Each callback return object parameter has no additional extended attributes.

## Example

### code example
```json
{
   "tab": "api",
   "item": "removeMenuItem"
   }
```

```js
tt. removeMenuItem({
   key: 'custom_key',
   success(res) {
     console.log('removeMenuItem called successfully', res.errMsg);
   },
   fail(res) {
     console.log('removeMenuItem call failed', res.errMsg);
   },
   complete (res) {
     console.log('removeMenuItem call ended', res.errMsg);
   }
});
```

### **success** **Function return object example**

```json
{
   "errMsg": "removeMenuItem:ok"
}
```

## Tip

None.