Questions tagged [recycle-bin]

In computing, the trash (also known as the recycle bin) is temporary storage for files that have been deleted in a file manager by the user, but not yet permanently erased from the physical media.

In computing, the trash (also known as the recycle bin) is temporary storage for files that have been deleted in a file manager by the user, but not yet permanently erased from the physical media.

Recycle bin functionality is usually integrated into a desktop environment and its file manager. Examples include:

  • Mac OS and Mac OS X, with Macintosh Finder, as Trash (or Wastebasket in defunct localizations)
  • Microsoft Windows, with Windows Explorer
  • GNOME (Linux), with Nautilus
  • KDE (Linux), with Konqueror and Dolphin
  • Xfce (Linux), with Thunar
  • Amiga, when using the WorkBench. The Professional File System added trashcan-esque behavior at the filesystem level.
  • Windows Live, with Skydrive

Resources

Chat Room

Chat about recycle-bin with other Stack Overflow users

236 questions
8
votes
2 answers

'tmp' directory is too big in iOS

I made an app which is 40 MB (very big for me). But the real surprise is that I found the tmp directory is 300 MB! And I haven't saved any files in the document yet! All the files' names in tmp are…
Wang Liang
  • 941
  • 2
  • 15
  • 34
8
votes
1 answer

Does Java 7 have a way to put files in recycle bin rather than delete on Windows

Does Java 7 have a way to put files in recycle bin rather than delete on WIndows ? I know it doesn't exist in Java 6, but I really thought this was getting added to Java 7 but have been unable to find it, if not is there a 3rd party library…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
7
votes
2 answers

Listing files in recycle bin

I want to list the files that are in the recycle bin in Vista from the command line. So far I have this: dir C:\$Recycle.Bin /s /b >> recyclebin.txt This works alright, the output I get is…
methodunderg
7
votes
0 answers

How to know whether a file can be moved to the trash in Cocoa

Currently I'm able to trash selected user files. The question is how to know whether the volume of that file supports trashing. For example, external USB sticks just have a local trash folder, while trashing a file on a remote Mac is not allowed…
Nickkk
  • 2,261
  • 1
  • 25
  • 34
7
votes
5 answers

How to empty recycling bin in batch

I need a code to empty the recycling bin without conformation I have tried the simple del $Recycle.Bin but it says access denied even when elevated does any one know a code I could use.
09stephenb
  • 9,358
  • 15
  • 53
  • 91
7
votes
1 answer

What does ShFileOperation do when the recycle bin is full?

I use this procedure: function MoveToRecycle(sFileName: widestring): Boolean; var fos: TSHFileOpStructW; begin FillChar(fos, SizeOf(fos), 0); with fos do begin wnd := 0; wFunc := FO_DELETE; pFrom := PWideChar(sFileName + #0 +…
Irwan
  • 783
  • 1
  • 13
  • 28
5
votes
4 answers

How does Vista Recycle bin work?

I am trying to write a python module to move files to the 'Recycle Bin' on both Mac and PC. Is there a way, only from the commandline (and yes, I mean using absloutly no C#/C++/etc) to move a file into the Recycle Bin, and have it appear as a file…
FarMcKon
  • 161
  • 1
  • 5
5
votes
2 answers

Can't clear up space on macOs Catalina. "Other" takes 370GB out of 500GB and other tools show half of this

Recently I had almost full disk space taken on my Macbook Pro running macOs Catalina. I saw that what took most of my space was folder under: /Users/Shared/Relocated Items so I deleted this folder by moving to trash and emptying it. I deleted many…
Wojtek Smol
  • 57
  • 1
  • 2
5
votes
2 answers

How to restore files from recycle bin

Possible Duplicate: How do I restore a file from the recycle bin using C#? Someone knows how to restore files from recycle bin using C# with the Windows API?.
Krähne
  • 175
  • 1
  • 4
  • 12
5
votes
2 answers

How can I delete files from recycle bin in windows? python

I'm trying to delete files that are in the recycle bin by using python, but i can't find a way to do it. Thanks.
Shir K.
  • 113
  • 1
  • 4
5
votes
0 answers

Google Drive folder not recognized when trashed in Android app

I'd appreciate some help with the problem I am experiencing with google drive. I have searched all over for information on this issue but found none. Here's my problem: I am developing an Android app, part of which uses Google Drive to save…
Clive Sargeant
  • 622
  • 11
  • 24
5
votes
2 answers

Deleting file to recycle bin on Windows x64 in C#

I've got this class which seems to work quite well on non-64bit. using System; using System.Runtime.InteropServices; namespace DeleteToRecycleBin { /// /// Send files directly to the recycle bin. /// public class RecybleBin { …
MadBoy
  • 10,824
  • 24
  • 95
  • 156
5
votes
1 answer

list filenames in the recyclebin with c# without using any external files

I would like to have a function which retrieves me the filenames in the recycle bin (on win 7) with usage of c# code. The framework seems nothing to contain to achieve this. Directory.Getfiles() wouldn't work on it, would it? I found myself a code…
feedwall
  • 1,473
  • 7
  • 28
  • 48
5
votes
2 answers

Windows: how can I move a file with a long path to the recycle bin?

I'm using Python but I think the same problem exists in C#. I'd like to be able to support extended paths (paths with len > 260 which are represented like //?/c:/blah/blah). It looks like the standard way to move files to the recycle bin is via…
greenhat
  • 1,061
  • 1
  • 12
  • 19
4
votes
3 answers

How can I empty the recycle bin for all users from a Windows service application in c#

I'm looking for a c# snippet which I can insert in a Windows service. The code must empty the recycle bin for all users on the computer. I have previously tried using SHEmptyRecycleBin (ref http://www.codeproject.com/KB/cs/Empty_Recycle_Bin.aspx)…
Dean Bates
  • 1,927
  • 5
  • 25
  • 24
1
2
3
15 16