# removeCustomTile()

Removes a previously added custom tile.

```javascript
sambaFrame.on('userJoined', (event) => {
   const data = event.data;
   if (data.type === 'local') {
     sambaFrame.addCustomTile({
        "name": "AI", 
        "html": '<img src="https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExdjR5YjF5dWQ4d2d2NzI5eHFyYmxyczgydzRuZ2JwZ2F4MTliaGo2bCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MHMO7iYMt6pJrEpKNB/giphy.gif"/>',
        "position": "last"
     });
   }
});
 
//Later at some point
sambaFrame.removeCustomTile("AI");
```

{% hint style="info" %}
This method is used in conjunction with the [addCustomTile()](https://docs.digitalsamba.com/reference/sdk/methods/addcustomtile) method.
{% endhint %}
