Reply to topic

How to delete a series of folders & files in one folder?

Bumpalot
Registered Member
Posts
56
Karma
0
OS
Ran Backup In Time for a test run. It completed, but I was very unhappy with the results, so uninstalled it. It has left me with a host of folder/files to clean up in /.local/share/Trash/Files/ that requires expert use of Terminal commands for kubuntu 12.10
Any constructive suggestions would be most welcome!! :o
User avatar google01103
Manager
Posts
4963
Karma
17
OS
it's your trashcan

if you have a trashcan widget just right click on it -> empty trash or in Dolphin use the kio, in address go to: trash:/, then select delete like any regular file/folder

fyi the the folder address in your post needs to be preceded by a ~ or /home/user_account/ so not to confuse readers


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar scummos
KDE Developer
Posts
626
Karma
4
OS
To delete multiple files or folders from the terminal, you can use "rm -R path_to_file_or_folder". Be careful with that command tough, as what it deletes cannot be restored easily.

But yes, usually, you can just click "Trash" and empty that for what you want to do in this case.

Greetings,
Sven


Bumpalot
Registered Member
Posts
56
Karma
0
OS
Thanks for your suggestion!
Trashcan does not work - files are still present, but don't show in Trashcan
The full path is /home/bumpy/.local/share/Trash/Files
There are 3 folders here: 2.2.teamviewer, 1.2.2, backup.2.2.2
In Thunar, Trash does show these 3 folders, all locked.
Each of these folders contain a phenominal number of files. Below is a screenshot of the Properties page of each. As I opened each, the Size: constantly calculates the actual size -- a very slow process!
I closed Snapshot 1 before it had completed calculating.
[img]file:///home/bumpy/Pictures/FileManagerView.jpeg
[/img]
[img]file:///home/bumpy/Pictures/Screenshot1.jpeg
[/img]
[img]file:///home/bumpy/Pictures/snapshot2.jpeg
[/img]
[img]file:///home/bumpy/Pictures/snapshot3.png
[/img]
Hope this helps to identify my problem!

Last edited by Bumpalot on Thu Nov 08, 2012 3:21 pm, edited 1 time in total.
User avatar google01103
Manager
Posts
4963
Karma
17
OS
you images do not show, you need to upload them to a pic sharing site first


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
Bumpalot
Registered Member
Posts
56
Karma
0
OS
Please advise hoe I do that. Thanks
User avatar google01103
Manager
Posts
4963
Karma
17
OS
you pick a pick hosting site (just google: free picture hosting site), upload the pic and then use the link to the hosted pic


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
Bumpalot
Registered Member
Posts
56
Karma
0
OS
The full path is /home/bumpy/.local/share/Trash/Files
There are 3 folders here: 2.2.teamviewer, 1.2.2, backup.2.2.2
In Thunar, Trash does show these 3 folders, all locked.
Each of these folders contain a phenominal number of files. Below is a screenshot of the Properties page of each. As I opened each, the Size: constantly calculates the actual size -- a very slow process!
I closed Snapshot 1 before it had completed calculating.
http://postimage.org/bumpalot

Hope this works!
User avatar google01103
Manager
Posts
4963
Karma
17
OS
sorry but no image, after you added the file did you upload it?

are you the owner of the files? do you have write permission of the folders/files?


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
User avatar google01103
Manager
Posts
4963
Karma
17
OS
could you clarify something(s):
- how did you install/remove Back In Time?
- did you or the removal process move your files to Trash?


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
Bumpalot
Registered Member
Posts
56
Karma
0
OS
Sorry - this is the 1st time I have done this.
This is the "Hotlink for Forums":
Image
upload photo
Image
online photo sharing
Image
upload photo
Image
picture hosting
Hope this is OK!
User avatar toad
Global Moderator
Posts
876
Karma
6
OS
The fact that they've got a lock on them means you root privileges are required. A
Code: Select all
sudo rm -r /home/bumpy/.local/share/Trash/Files/*
should sort you out.


Sid
User avatar google01103
Manager
Posts
4963
Karma
17
OS
I can't figure out exactly what you've done, in the properties window there should be a "permissions" tab and not sure how/what the lock emblem is though I'm guessing it's a permmission thing and you don't have permission

not sure but don't think you can delete trashcan files this way as the files are tied to the parent folder and the metadata file and info folder

what you could try is opening Thunar or Dolphin as root and then deleting the Trash folder, not the Trash/files one

how did you originally delete the files

why are you using thunar? are you running KDE desktop or XFCE?

your pic links still not correct, though pics do displaym the first url you use is to postimage.org so when you click on the pic that's where you go not to the page with the pic or th full size pic. also you have extraneous links to things like "picture hosting"


OpenSuse 13.1 x64, KDE 4.12.x

Problem solved? Please click on Image below the post with the best answer to mark your topic as solved.
Bumpalot
Registered Member
Posts
56
Karma
0
OS
Catchup answer to questions:
could you clarify something(s):
- how did you install/remove Back In Time?
- did you or the removal process move your files to Trash?
Installed from Muon Software
Deleted at Muon Software.

sudo rm -r /home/bumpy/.local/share/Trash
- did the trick.
Thanks for your patience in seeing this through, I really appreciate it!
User avatar toad
Global Moderator
Posts
876
Karma
6
OS
Glad things worked out for you - could you mark this as solved?

Cheers


Sid

 
Reply to topic

Bookmarks



Who is online

Registered users: afiestas, arojas, avishekk, Baidu [Spider], Bing [Bot], bjoernbalazs, Cris70, edmael, epsi1on, Exabot [Bot], ggael, Google [Bot], google01103, Hans, ivan, jgrulich, joshaughnessy, jstaniek, koriun, La Ninje, Majestic-12 [Bot], MSNbot Media, ooker, scummos, sinclair, Sogou [Bot], TheraHedwig, Tioz, Yahoo [Bot]