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
2
votes
1 answer

AS3 Object Bin and Reset Button

I am trying to create a game for kids where they can drag letters on to a stage to make words. I want to add a 'trash can' where users can drag letters they no longer need to dispose of them. I have created the movie clip but am totally unsure how…
James
  • 65
  • 6
2
votes
2 answers

How to retrieve the 'Deletion Date' property of an Item stored in the Recycle Bin using Windows API Code Pack?

UPDATE 2 Finally testing most of the WindowsAPICodePack interfaces I've found bymyself the way to acces to the deleted Files on the RecycleBin. The unique problem now is that I need to know how to acces the required property bag to retrieve the…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
2
votes
3 answers

Can I put files into LInux Trash with Java

I know standard Java still doesn't provide a standard way to put files in ecycle bin/trash instead of permanently deleting them. But thankfully there are solutions for WIndows (jna) and OSX ( com.apple.eio.FileManager) . But is there anything for…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
2
votes
1 answer

Override file delete in android

Is it possible to override File.delete() function? Whenever i delete any file from sdcard from other apps (not using by my application) i need a notification like this file is going to be delete. A sample code snippet i tried is, public class…
user2791281
  • 149
  • 3
  • 12
2
votes
0 answers

Recycle Bin in Android

I'm trying to implement Recycle Bin application in android, I came across FileObserverclass to observe all the files, but the problem is FileObserver only notifies that file is deleted after file deletion, here is my code snippet public void…
Chethan Shetty
  • 1,972
  • 4
  • 25
  • 45
2
votes
1 answer

Find trashed file location in GIO

The documentation says that all files moved to trash are stored normally in ~/.local/share/Trash/files. Are there an exception for files removed from removable media? Are they stored in drive_root/.Trash-xxx directory? Or is this behavior obsolete?…
Pavel Strakhov
  • 39,123
  • 5
  • 88
  • 127
2
votes
2 answers

How can I tell that a directory is the Recycling bin in VB6?

I am attempting to port the code in this article to VB6, but I'm experiencing crashing. I'm pretty sure my error is in my call to SHBindToParent (MSDN entry) since SHParseDisplayName is returning 0 (S_OK) and ppidl is being set. I admit my…
Brian
  • 25,523
  • 18
  • 82
  • 173
2
votes
1 answer

win32api restore file from recyclebin using SHFileStruct

I'm using win 32 api to built explore is the same window. I can delete file to recycle bin. Now, I want to undo files which were deleted to recycle bin. What am I doing now? please help me.
2
votes
1 answer

Restore from Recyclebin(C#)

See this. Does the same code (JohnWein's answer) work in 9x,Me,2K,7 too? If it doesn't please tell me what should i search for to do the same for 9x,Me,2k & 7? Thanks
AMKGMA
2
votes
1 answer

Linux recycle bin script

I'm creating a recycle-bin script in SH shell linux in three differant scripts, delete, trash and restore. The first two scripts are working fine; 'Delete' moves the selected file to the recycle-bin while logging a text file called 'trashinfo'…
2
votes
3 answers

How to delete folder into recycle bin

I am programing under C++, MFC, windows. I want to delete a folder into recycle bin. How can I do this? CString filePath = directorytoBeDeletePath; TCHAR ToBuf[MAX_PATH + 10]; TCHAR FromBuf[MAX_PATH + 10]; ZeroMemory(ToBuf,…
user25749
  • 4,825
  • 14
  • 61
  • 83
1
vote
2 answers

How to recycle file/folder from network share delete

I'm trying to code a program which will watch a directory/disk and move deleted files/folders to recycle bin when they are deleted from network shared folder. I have this code which is working when a file/folder is deleted but I need to cancel…
HasanG
  • 12,734
  • 29
  • 100
  • 154
1
vote
1 answer

Powershell. Deleting files without a recycle bin

How to implement file deletion in Powershell without putting it in recycle.bin? The current command moves files older than 30 days to the trash. $int1 = 30 New-PSDrive -Name "E" -PSProvider "FileSystem" -Root "\\Computer\c`$\Folder"…
1
vote
1 answer

How to delete a folder with content to recycle bin in Matlab

I am running Matlab R2020b on Windows 10. Is there a way to move a folder with content to recycle bin programmatically in Matlab? For example, the following works for single files previousState=recycle('on'); delete(filename); % if replaced with…
Argyll
  • 8,591
  • 4
  • 25
  • 46
1
vote
2 answers

Using get-childitem -Exclude to avoid recycle bin, windows, program files

I am trying to exclude the "recycle bin", "Windows", and "Program Files" folders in my recursive call to Get-ChildItem. I figured it would just be -Exclude '$Recycle.Bin', 'Windows', 'Program Files' or -Exclude 'C:\$Recycle.Bin', 'C:\Windows',…
mellinka
  • 23
  • 3