---
title: "Trash animated icon"
description: "Trash animated icon (Actions). Something is thrown away. Light: the lid flips open on its right-hand hinge, a crumpled scrap drops from under the raised edge into the bin and vanishes inside, and the lid drops shut with a hit and one chatter while the whole bin dips on contact. Strong: the lid flips wider and holds longer, two scraps drop in one after the other, and the lid slams with two chatters and a deeper dip."
canonical: https://generativeicons.com/icons/trash/
---

# Trash animated icon

Something is thrown away. Light: the lid flips open on its right-hand hinge, a crumpled scrap drops from under the raised edge into the bin and vanishes inside, and the lid drops shut with a hit and one chatter while the whole bin dips on contact. Strong: the lid flips wider and holds longer, two scraps drop in one after the other, and the lid slams with two chatters and a deeper dip.

- Id: `trash`
- Category: Actions
- Search terms: delete, remove, discard, bin, garbage, rubbish, wastebasket, trash can, recycle bin, dustbin, throw away, move to trash, waste, garbage can
- One action, back to rest
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/trash.lottie (dotLottie, 4249 bytes, sha256 770f8156f518427a06138dd98397a24506cda120d58564e917d81f86b9d7e9fc)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add trash
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/trash.mjs';

export function TrashIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/trash.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/trash/ · https://generativeicons.com/api/icons/trash
