---
title: "admRemoveGadgetFromDashboard"
canonical: "https://support.appfire.com/space/PSJC/748718777/admRemoveGadgetFromDashboard"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Removes a gadget

removes a gadget from the specified dashboard. 

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admRemoveGadgetFromDashboard(dashboardId, gadgetId) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | removeGadgetFromDashboard(dashboardId, gadgetId) |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| dashboardId | string | Yes | The dashboard ID |
| gadgetId | int | Yes | The gadget id to be removed |

## Return Type

**boolean**

false if the provided ids are invalid.

## See also

> Macro (contentbylabel)