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
3
votes
3 answers

Powershell Get-ChildItem progress indication

Is it possible to display any sort of a progress indicator for the following (or similar) command? $dir = 'C:\$Recycle.Bin\S-1-5-18\' (Get-ChildItem -LiteralPath $dir -File -Recurse -Force -ErrorAction SilentlyContinue | Measure-Object -Property…
3
votes
4 answers

Get the full size icons of the Trash can

I am trying to display the icons of the Trash can in my app, both empty and full. I've tried several methods to get the icons, but each time the size is 32x32. Do you know a way to get a full size image?
AP.
  • 5,205
  • 7
  • 50
  • 94
3
votes
2 answers

how to move file to trash in drive api v3 in javascript?

I would like to use the gapi js SDK client to trash a file. But i cannot find a working example. I do not know where to place the trashed attribute in the call gapi.client.drive.files.update({fileId: 'someId', trashed: true}); doesnt work.
3
votes
0 answers

How can i remove plist file from LaunchDaemons when i drag my application to trash

I have a mac application which stores a plist file in Lauchdaemons (which starts the local server). Also there is a chrome extension file in /Library/Application Support/Google/Chrome/External Extensions directory which needs to be removed. When i…
Ashish Gaude
  • 161
  • 6
3
votes
2 answers

How to move files and folders to Trash programmatically on macOS?

All I can find on this topic is mentions of FSMoveObjectToTrashSync function, which is now deprecated and no alternative is listed for it. How to do it from C or Objective-C code?
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
3
votes
5 answers

How to detect the item restore on a ItemAdded() event on SharePoint

I know that when an item is restored from the recycle bin, the ItemAdded event is fired. However, how can I detect if the item added comes from the recycle bin or if it is a new file.
3
votes
0 answers

Angular-CLI: Where is the App Module?

Feel free to skim what I did, it's pretty typical. Used angular-cli to generate an app: ng start Created a component: ng generate component user-item import { Component, OnInit } from '@angular/core'; @Component({ moduleId: module.id, …
VSO
  • 11,546
  • 25
  • 99
  • 187
3
votes
1 answer

How to get list of files from recycle bin for the volume/disk that was mounted?

Usually people get list of files inside the Recycle Bin using Shell32.dll. private static IEnumerable GetRecycleBinFilenames() { const int ssfBitbucket = 10; Type t = Type.GetTypeFromProgID("Shell.Application"); dynamic shell =…
Brans Ds
  • 4,039
  • 35
  • 64
3
votes
2 answers

How can I get the localized name of a 'special' windows folder (Recycle bin etc.)?

I'm trying to find out the 'correct' windows API for finding out the localized name of 'special' folders, specifically the Recycle Bin. I want to be able to prompt the user with a suitably localized dialog box asking them if they want to send files…
Free Wildebeest
  • 7,272
  • 8
  • 38
  • 42
3
votes
1 answer

Where do I find the SmartGit trash?

When deleting untracked files in SmartGit (on Windows) you have to option to actually delete or "Move to trash". Often I use "Move to trash" when I am not 100% sure about deleting something. I just did "move stuff to trash" which I now need back,…
vrijdenker
  • 1,371
  • 1
  • 12
  • 25
3
votes
2 answers

Is there a way to retrieve the meta for a deleted Item (File/Folder) for Office365 OneDrive through REST API?

I'm looking for a way to retrieve the meta for a deleted item(file/folder). I'm able to get change logs indicating that a certain action has been performed on an Item, and I've been able to retrieve the Item itself as well if it hasn't been…
Syed Mauze Rehan
  • 1,125
  • 14
  • 31
3
votes
1 answer

Recycle bin Script in Linux

In my production server, somebody executed rm -rf and my important files are removed permanently. So, I thought of having a recycle bin, so if a user do rmthe file will move to RecycleBin rather than deleting from server. And i've made the below…
dm90
  • 775
  • 1
  • 10
  • 24
3
votes
3 answers

Deleting a single item FROM recycle bin

Is there any way in C# (interop maybe) to delete a specific file in the recycle bin permanently? While searching on the internet I only found ways to delete TO the recycle bin not FROM. I also don't want to empty the whole bin, just one specific…
eric
  • 1,857
  • 5
  • 23
  • 33
2
votes
0 answers

How to trash a file that NOT OWNED by me but shared with me Google Drive API v3

Here is my issue: I have a folder that I own. I set permission of X account to my folder as "writer" X account uploads a file to my folder. (X becomes the owner, I become editor/writer/contributor for that file) I can move the uploaded file to…
2
votes
0 answers

How to detect the deletion of any file in Android before it's deleted from the system?

I'm trying to develop an android application like this Recycle Bin App on playstore where any file deleted from the android system is detected and shown in the recycle bin app from where it can be recovered (which they're probably doing it by making…
Qazi
  • 122
  • 6