Gentleface › Files & folders › file-x
file-x icon
file-xFile x: delete file, remove file, delete document, discard file. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Code line-round
<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 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.423 4.716 12.636 5.036 12.784 5.399C12.837 5.529 12.837 5.657 12.785 5.783C12.732 5.908 12.64 5.997 12.51 6.051C12.482 6.062 12.454 6.071 12.427 6.078C12.314 6.059 12.202 6.043 12.088 6.031C12.071 6.022 12.055 6.011 12.038 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L5.5 14C5.641 14 5.759 14.048 5.856 14.144C5.952 14.241 6 14.359 6 14.5C6 14.641 5.952 14.759 5.856 14.856C5.759 14.952 5.641 15 5.5 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 3C3 2.746 3.047 2.5 3.14 2.264ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.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>
// 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 2.264C3.242 2.007 3.391 1.781 3.586 1.586C3.781 1.391 4.007 1.242 4.264 1.14C4.5 1.047 4.746 1 5 1L7.5 1C7.886 1 8.258 1.074 8.615 1.222C8.972 1.37 9.287 1.58 9.561 1.854L12.146 4.439C12.423 4.716 12.636 5.036 12.784 5.399C12.837 5.529 12.837 5.657 12.785 5.783C12.732 5.908 12.64 5.997 12.51 6.051C12.482 6.062 12.454 6.071 12.427 6.078C12.314 6.059 12.202 6.043 12.088 6.031C12.071 6.022 12.055 6.011 12.038 6L10 6C9.746 6 9.5 5.953 9.264 5.86C9.007 5.758 8.781 5.609 8.586 5.414C8.391 5.219 8.242 4.993 8.14 4.736C8.047 4.5 8 4.254 8 4L8 2.066C7.838 2.022 7.671 2 7.5 2L5 2C4.724 2 4.488 2.098 4.293 2.293C4.098 2.488 4 2.724 4 3L4 13C4 13.276 4.098 13.512 4.293 13.707C4.488 13.902 4.724 14 5 14L5.5 14C5.641 14 5.759 14.048 5.856 14.144C5.952 14.241 6 14.359 6 14.5C6 14.641 5.952 14.759 5.856 14.856C5.759 14.952 5.641 15 5.5 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 3C3 2.746 3.047 2.5 3.14 2.264ZM9 2.707L9 4C9 4.276 9.098 4.512 9.293 4.707C9.488 4.902 9.724 5 10 5L11.293 5L9 2.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: see /icons/file-x.md
Svelte: see /icons/file-x.md
HTML img: see /icons/file-x.md
CSS: see /icons/file-x.md
Data URL: see /icons/file-x.md
Sprite: see /icons/file-x.md
SwiftUI: see /icons/file-x.md
Compose: see /icons/file-x.md
Android XML: see /icons/file-x.md
Flutter: see /icons/file-x.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 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
diff-removed): × 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
- diff removed (use
- Built from
file+ x- Category
- Files & folders
- Component name
FileXIcon- History
- added
Family 42
More files & folders icons
archive archive-arrow-up archive-clock archive-lock archive-search book book-arrow-down book-bookmark book-check book-clock book-open book-plus book-search book-x folder folder-alert · all 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