<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=cmd%2Fgio%2Ftrash</id>
	<title>cmd/gio/trash - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=cmd%2Fgio%2Ftrash"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=cmd/gio/trash&amp;action=history"/>
	<updated>2026-06-26T11:17:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=cmd/gio/trash&amp;diff=28879&amp;oldid=prev</id>
		<title>Woozle: Created page with &quot;* &#039;&#039;&#039;Command&#039;&#039;&#039;: {{l/cmd|gio}} trash [OPTION...] [LOCATION...] * &#039;&#039;&#039;Action&#039;&#039;&#039;: Sends files or directories to the ‘Trashcan’ or restore them from ‘Trashcan’. ==About==...&quot;</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=cmd/gio/trash&amp;diff=28879&amp;oldid=prev"/>
		<updated>2024-01-02T23:36:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* &amp;#039;&amp;#039;&amp;#039;Command&amp;#039;&amp;#039;&amp;#039;: {{l/cmd|gio}} trash [OPTION...] [LOCATION...] * &amp;#039;&amp;#039;&amp;#039;Action&amp;#039;&amp;#039;&amp;#039;: Sends files or directories to the ‘Trashcan’ or restore them from ‘Trashcan’. ==About==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Command&amp;#039;&amp;#039;&amp;#039;: {{l/cmd|gio}} trash [OPTION...] [LOCATION...]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Action&amp;#039;&amp;#039;&amp;#039;: Sends files or directories to the ‘Trashcan’ or restore them from ‘Trashcan’.&lt;br /&gt;
==About==&lt;br /&gt;
The &amp;#039;Trashcan&amp;#039; can be a different folder depending on where the file is located, and not all file systems support this concept. In the common case that the file lives inside a user’s home directory, the trash folder is &amp;lt;code&amp;gt;$XDG_DATA_HOME/Trash&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that moving files to the trash does not free up space on the file system until the ‘Trashcan’ is emptied. If you are interested in deleting a file irreversibly, see the &amp;#039;&amp;#039;&amp;#039;{{l/same|remove}}&amp;#039;&amp;#039;&amp;#039; command.&lt;br /&gt;
&lt;br /&gt;
Inspecting and emptying the ‘Trashcan’ is normally supported by graphical file managers such as Nautilus, but you can also see the trash with these commands:&lt;br /&gt;
* {{l/cmd|gio}} trash --list&lt;br /&gt;
* {{l/cmd|gio}} list trash://&lt;br /&gt;
==Options==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! short || long || description&lt;br /&gt;
|-&lt;br /&gt;
| -f || --force&lt;br /&gt;
| Ignore non-existent and non-deletable files.&lt;br /&gt;
|-&lt;br /&gt;
|    || --empty&lt;br /&gt;
| Empty the trash.&lt;br /&gt;
|-&lt;br /&gt;
|    || --list&lt;br /&gt;
| List files in the trash with their original locations&lt;br /&gt;
|-&lt;br /&gt;
|    || --restore&lt;br /&gt;
| Restore a file from trash to its original location. A URI beginning with trash:// is expected here. If the original directory doesn&amp;#039;t exist, it will be recreated.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>