gentleface

Gentleface › Actions › trash

trash icon

Trash: delete, trash, bin, recycle bin. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 3L13.5 3C13.641 3 13.759 3.048 13.856 3.144C13.952 3.241 14 3.359 14 3.5C14 3.641 13.952 3.759 13.856 3.856C13.759 3.952 13.641 4 13.5 4L13 4L13 13C13 13.254 12.953 13.5 12.86 13.736C12.758 13.993 12.609 14.219 12.414 14.414C12.219 14.609 11.993 14.758 11.736 14.86C11.5 14.953 11.254 15 11 15L5 15C4.746 15 4.5 14.953 4.264 14.86C4.007 14.758 3.781 14.609 3.586 14.414C3.391 14.219 3.242 13.993 3.14 13.736C3.047 13.5 3 13.254 3 13L3 4L2.5 4C2.359 4 2.241 3.952 2.144 3.856C2.048 3.759 2 3.641 2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L5 3L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L10.5 1C10.641 1 10.759 1.048 10.856 1.144ZM6 2L6 3L10 3L10 2L6 2ZM4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L11 14C11.276 14 11.512 13.902 11.707 13.707C11.902 13.512 12 13.276 12 13L12 4L4 4L4 13ZM6.144 6.144C6.241 6.048 6.359 6 6.5 6C6.641 6 6.759 6.048 6.856 6.144C6.952 6.241 7 6.359 7 6.5L7 11.5C7 11.641 6.952 11.759 6.856 11.856C6.759 11.952 6.641 12 6.5 12C6.359 12 6.241 11.952 6.144 11.856C6.048 11.759 6 11.641 6 11.5L6 6.5C6 6.359 6.048 6.241 6.144 6.144ZM9.144 6.144C9.241 6.048 9.359 6 9.5 6C9.641 6 9.759 6.048 9.856 6.144C9.952 6.241 10 6.359 10 6.5L10 11.5C10 11.641 9.952 11.759 9.856 11.856C9.759 11.952 9.641 12 9.5 12C9.359 12 9.241 11.952 9.144 11.856C9.048 11.759 9 11.641 9 11.5L9 6.5C9 6.359 9.048 6.241 9.144 6.144Z"/></svg>
React
// Gentleface "trash" (line-round), MIT. https://gentleface.com/icons/trash
import type { SVGProps } from 'react';

export function TrashIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M10.856 1.144C10.952 1.241 11 1.359 11 1.5L11 3L13.5 3C13.641 3 13.759 3.048 13.856 3.144C13.952 3.241 14 3.359 14 3.5C14 3.641 13.952 3.759 13.856 3.856C13.759 3.952 13.641 4 13.5 4L13 4L13 13C13 13.254 12.953 13.5 12.86 13.736C12.758 13.993 12.609 14.219 12.414 14.414C12.219 14.609 11.993 14.758 11.736 14.86C11.5 14.953 11.254 15 11 15L5 15C4.746 15 4.5 14.953 4.264 14.86C4.007 14.758 3.781 14.609 3.586 14.414C3.391 14.219 3.242 13.993 3.14 13.736C3.047 13.5 3 13.254 3 13L3 4L2.5 4C2.359 4 2.241 3.952 2.144 3.856C2.048 3.759 2 3.641 2 3.5C2 3.359 2.048 3.241 2.144 3.144C2.241 3.048 2.359 3 2.5 3L5 3L5 1.5C5 1.359 5.048 1.241 5.144 1.144C5.241 1.048 5.359 1 5.5 1L10.5 1C10.641 1 10.759 1.048 10.856 1.144ZM6 2L6 3L10 3L10 2L6 2ZM4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L11 14C11.276 14 11.512 13.902 11.707 13.707C11.902 13.512 12 13.276 12 13L12 4L4 4L4 13ZM6.144 6.144C6.241 6.048 6.359 6 6.5 6C6.641 6 6.759 6.048 6.856 6.144C6.952 6.241 7 6.359 7 6.5L7 11.5C7 11.641 6.952 11.759 6.856 11.856C6.759 11.952 6.641 12 6.5 12C6.359 12 6.241 11.952 6.144 11.856C6.048 11.759 6 11.641 6 11.5L6 6.5C6 6.359 6.048 6.241 6.144 6.144ZM9.144 6.144C9.241 6.048 9.359 6 9.5 6C9.641 6 9.759 6.048 9.856 6.144C9.952 6.241 10 6.359 10 6.5L10 11.5C10 11.641 9.952 11.759 9.856 11.856C9.759 11.952 9.641 12 9.5 12C9.359 12 9.241 11.952 9.144 11.856C9.048 11.759 9 11.641 9 11.5L9 6.5C9 6.359 9.048 6.241 9.144 6.144Z" />
    </svg>
  );
}
Vue
Vue: see /icons/trash.md
Svelte
Svelte: see /icons/trash.md
HTML img
HTML img: see /icons/trash.md
CSS
CSS: see /icons/trash.md
Data URL
Data URL: see /icons/trash.md
Sprite
Sprite: see /icons/trash.md
SwiftUI
SwiftUI: see /icons/trash.md
Compose
Compose: see /icons/trash.md
Android XML
Android XML: see /icons/trash.md
Flutter
Flutter: see /icons/trash.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

Meaning

Use it for
delete, trash, bin, recycle bin, trash can, wastebasket
Alternatives
  • x: remove from a list or dismiss without deleting the data
  • trash-clock: delete later, on a schedule
  • trash-full: the trash has items in it
Don’t confuse with
  • minus: minus never means remove or delete
  • eraser: the eraser erases strokes or pixels, not an item
  • recycle: the recycling loop means recycling, not the trash
Also fits
  • trash full: the trash in general, or delete
  • delete layer: the delete button at the foot of a layers panel (Photoshop convention)
  • shred: an ordinary delete (delete)
  • delete file: move to trash when the UI already names the file
  • recycle: the Windows Recycle Bin: deleted items (trash owns delete and bin)
Not for
  • close (use x): the trash motif does not mean dismiss
  • remove package (use package-x): trash means delete to the bin; remove from a list is ×
  • eraser (use eraser): trash deletes an item; the eraser rubs out strokes or pixels
  • archive (use archive): trash deletes; archive keeps items, out of view
  • clear (use x-circle): trash deletes data; clear only empties a field
Tags
bin, remove, garbage
Category
Actions
Component name
TrashIcon
History
  • added
  • 20 px drawn, 24 px drawn

Family 2

More actions icons

For agents

Metadata: /icons/trash.json · Markdown: /icons/trash.md · SVG: https://gentleface.com/svg/{style}/16/trash.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/trash.png

Feedback