Trash X icon
Download the Trash X icon as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.
- delete
- remove
- bin
- garbage
- trash-can
- empty-trash
- discard
- waste
- rubbish
- trash
Style
Size
Stroke
Filled icons have no stroke
Color
- Category
- objects
- Styles
- Outline, filled
- Component
- IconTrashX
- License
- MIT · Paweł Kuna
Code
Copy it the way you use it
trash-x.svg
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M4 7h16" />
<path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" />
<path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" />
<path d="M10 12l4 4m0 -4l-4 4" />
</svg> Use the Trash X icon
For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.
React example
import { IconTrashX } from '@tabler/icons-react';
<IconTrashX size={24} stroke={2} />Read the React guideVue example
import { IconTrashX } from '@tabler/icons-vue';
<IconTrashX :size="24" :stroke="2" />Read the Vue guideSvelte 5 example
import { IconTrashX } from '@tabler/icons-svelte-runes';
<IconTrashX size={24} stroke={2} />Read the Svelte guideRelated