gentleface

Gentleface › Files & folders › file-x

file-x icon

File x: delete file, remove file, delete document, discard file. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

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="M3.14 1.264C3.242 1.007 3.391 0.781 3.586 0.586C3.781 0.391 4.007 0.242 4.264 0.14C4.5 0.047 4.746 0 5 0L7.5 0C7.886 0 8.258 0.074 8.615 0.222C8.972 0.37 9.287 0.58 9.561 0.854L12.146 3.439C12.42 3.713 12.63 4.028 12.778 4.385C12.926 4.742 13 5.114 13 5.5C13 5.641 12.952 5.759 12.856 5.856C12.759 5.952 12.641 6 12.5 6C12.359 6 12.241 5.952 12.144 5.856C12.048 5.759 12 5.641 12 5.5C12 5.329 11.978 5.162 11.934 5L10 5C9.746 5 9.5 4.953 9.264 4.86C9.007 4.758 8.781 4.609 8.586 4.414C8.391 4.219 8.242 3.993 8.14 3.736C8.047 3.5 8 3.254 8 3L8 1.066C7.838 1.022 7.671 1 7.5 1L5 1C4.724 1 4.488 1.098 4.293 1.293C4.098 1.488 4 1.724 4 2L4 12C4 12.276 4.098 12.512 4.293 12.707C4.488 12.902 4.724 13 5 13L5.5 13C5.641 13 5.759 13.048 5.856 13.144C5.952 13.241 6 13.359 6 13.5C6 13.641 5.952 13.759 5.856 13.856C5.759 13.952 5.641 14 5.5 14L5 14C4.746 14 4.5 13.953 4.264 13.86C4.007 13.758 3.781 13.609 3.586 13.414C3.391 13.219 3.242 12.993 3.14 12.736C3.047 12.5 3 12.254 3 12L3 2C3 1.746 3.047 1.5 3.14 1.264ZM9 1.707L9 3C9 3.276 9.098 3.512 9.293 3.707C9.488 3.902 9.724 4 10 4L11.293 4L9 1.707ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9.146 9.146C8.951 9.342 8.951 9.658 9.146 9.854L10.793 11.5L9.146 13.146C8.951 13.342 8.951 13.658 9.146 13.854C9.342 14.049 9.658 14.049 9.854 13.854L11.5 12.207L13.146 13.854C13.342 14.049 13.658 14.049 13.854 13.854C14.049 13.658 14.049 13.342 13.854 13.146L12.207 11.5L13.854 9.854C14.049 9.658 14.049 9.342 13.854 9.146C13.658 8.951 13.342 8.951 13.146 9.146L11.5 10.793L9.854 9.146C9.658 8.951 9.342 8.951 9.146 9.146Z"/></svg>
React
// Gentleface "file-x" (line-round), MIT. https://gentleface.com/icons/file-x
import type { SVGProps } from 'react';

export function FileXIcon(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="M3.14 1.264C3.242 1.007 3.391 0.781 3.586 0.586C3.781 0.391 4.007 0.242 4.264 0.14C4.5 0.047 4.746 0 5 0L7.5 0C7.886 0 8.258 0.074 8.615 0.222C8.972 0.37 9.287 0.58 9.561 0.854L12.146 3.439C12.42 3.713 12.63 4.028 12.778 4.385C12.926 4.742 13 5.114 13 5.5C13 5.641 12.952 5.759 12.856 5.856C12.759 5.952 12.641 6 12.5 6C12.359 6 12.241 5.952 12.144 5.856C12.048 5.759 12 5.641 12 5.5C12 5.329 11.978 5.162 11.934 5L10 5C9.746 5 9.5 4.953 9.264 4.86C9.007 4.758 8.781 4.609 8.586 4.414C8.391 4.219 8.242 3.993 8.14 3.736C8.047 3.5 8 3.254 8 3L8 1.066C7.838 1.022 7.671 1 7.5 1L5 1C4.724 1 4.488 1.098 4.293 1.293C4.098 1.488 4 1.724 4 2L4 12C4 12.276 4.098 12.512 4.293 12.707C4.488 12.902 4.724 13 5 13L5.5 13C5.641 13 5.759 13.048 5.856 13.144C5.952 13.241 6 13.359 6 13.5C6 13.641 5.952 13.759 5.856 13.856C5.759 13.952 5.641 14 5.5 14L5 14C4.746 14 4.5 13.953 4.264 13.86C4.007 13.758 3.781 13.609 3.586 13.414C3.391 13.219 3.242 12.993 3.14 12.736C3.047 12.5 3 12.254 3 12L3 2C3 1.746 3.047 1.5 3.14 1.264ZM9 1.707L9 3C9 3.276 9.098 3.512 9.293 3.707C9.488 3.902 9.724 4 10 4L11.293 4L9 1.707ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9.146 9.146C8.951 9.342 8.951 9.658 9.146 9.854L10.793 11.5L9.146 13.146C8.951 13.342 8.951 13.658 9.146 13.854C9.342 14.049 9.658 14.049 9.854 13.854L11.5 12.207L13.146 13.854C13.342 14.049 13.658 14.049 13.854 13.854C14.049 13.658 14.049 13.342 13.854 13.146L12.207 11.5L13.854 9.854C14.049 9.658 14.049 9.342 13.854 9.146C13.658 8.951 13.342 8.951 13.146 9.146L11.5 10.793L9.854 9.146C9.658 8.951 9.342 8.951 9.146 9.146Z" />
    </svg>
  );
}
Vue
Vue: see /icons/file-x.md
Svelte
Svelte: see /icons/file-x.md
HTML img
HTML img: see /icons/file-x.md
CSS
CSS: see /icons/file-x.md
Data URL
Data URL: see /icons/file-x.md
Sprite
Sprite: see /icons/file-x.md
SwiftUI
SwiftUI: see /icons/file-x.md
Compose
Compose: see /icons/file-x.md
Android XML
Android XML: see /icons/file-x.md
Flutter
Flutter: see /icons/file-x.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. 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.

With npm: import { FileXIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
delete file, remove file, delete document, discard file
Example
Remove a file from a project
Alternatives
  • trash: move to trash when the UI already names the file
Don’t confuse with
  • file-off: the slash means unavailable, not deleted
Not for
  • diff removed (use minus-square): × is the delete-file action, not a version-control status
  • file error (use file-alert): × means remove or delete, never error
  • corrupted file (use file-broken): × means remove or delete, not damaged
  • file unavailable (use file-off): × deletes or removes; the slash means unavailable
Built from
file + x
Category
Files & folders
Component name
FileXIcon
History
  • added
  • released in 0.1.0
  • changed in 0.2.0
Since
version 0.1.0

Family 84

More files & folders icons

For agents

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