# Class RemoveWidget

RemoveWidget

A builder for RemoveWidget objects. Developers can remove a widget from the card by passing a
`RemoveWidget` to `ModifyCard`.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

Sample usage:

```javascript
const removeWidget = AddOnsResponseService.newRemoveWidget().setWidgetId('sample_id');

const modifyCard = AddOnsResponseService.newModifyCard().setRemoveWidget(removeWidget);
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `setWidgetId(widgetId)` | `RemoveWidget` | Sets the widget ID of the widget to be removed. |

## Detailed documentation

### `setWidgetId(widgetId)`

Sets the widget ID of the widget to be removed.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `widgetId` | `String` | The ID of the widget to remove. |

#### Return


`RemoveWidget` --- The remove widget object.