This forum has been archived. All content is frozen. Please use KDE Discuss instead.

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

Tags: None
(comma "," separated)
Bumpalot
Registered Member
Posts
57
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
6668
Karma
25
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 Leap 42.1 x64, Plasma 5.x

User avatar
scummos
Global Moderator
Posts
1175
Karma
7
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


I'm working on the KDevelop IDE.
Bumpalot
Registered Member
Posts
57
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
6668
Karma
25
you images do not show, you need to upload them to a pic sharing site first


OpenSuse Leap 42.1 x64, Plasma 5.x

Bumpalot
Registered Member
Posts
57
Karma
0
OS
Please advise hoe I do that. Thanks
User avatar
google01103
Manager
Posts
6668
Karma
25
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 Leap 42.1 x64, Plasma 5.x

Bumpalot
Registered Member
Posts
57
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
6668
Karma
25
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 Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
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 Leap 42.1 x64, Plasma 5.x

Bumpalot
Registered Member
Posts
57
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
1258
Karma
7
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.


Debian testing
User avatar
google01103
Manager
Posts
6668
Karma
25
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 Leap 42.1 x64, Plasma 5.x

Bumpalot
Registered Member
Posts
57
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
1258
Karma
7
OS
Glad things worked out for you - could you mark this as solved?

Cheers


Debian testing


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell