Selasa, 25 Desember 2018

Dellet file trushbin owncloud

Permanently remove deleted files automatically

Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
yannbane
Newbie
Posts: 7
Joined: Sat Oct 19, 2013 4:21 pm
Webserver: Apache
Database: MySQL
OS: Linux
Contact: 

Permanently remove deleted files automatically

Postby yannbane » Mon Nov 25, 2013 6:16 pm
I have naively backed up some git repositories in my ownCloud, without knowing how complex a repository file layout can get. After that, I had deleted the repository folder from my ownCloud.

As expected, the files landed in my "Deleted files". Now there are literally thousands of entries there. Some scripts are even causing Firefox to become unresponsive when I try to load the "Deleted files" page, or do pretty much anything there!

Now I would like to have all those files permanently deleted. I cannot simply delete them one by one because there are too many, and when I select all of them I have to wait for five minutes for Firefox to unfreeze and then no request is sent at all (just thousands of spinning load icons).

Is there some request that I could send to have all the files deleted? I might log in to the server and delete them manually, but they will still remain indexed in the database as per other people's experiences. Is there maybe an app to do this?

In either case, a button that empties the trash bin without deleting each individual file on its own would definitely be useful.
http://yannbane.com
yannbane
Newbie
Posts: 7
Joined: Sat Oct 19, 2013 4:21 pm
Webserver: Apache
Database: MySQL
OS: Linux
Contact: 

Re: Permanently remove deleted files automatically

Postby yannbane » Mon Nov 25, 2013 7:27 pm
I've solved the problem!

Essentially, you have to trick ownCloud into thinking your files have expired.

Do this by editing the owncloud/config/config.php file, and adding this line anywhere in the config array:

CODE: SELECT ALL
"trashbin_retention_obligation" => 0,


Then, reload your ownCloud in a web browser, create a simple text file to trigger the automatic removal, and voila - files will be deleted. You have to give it a few minutes.
http://yannbane.com

Tidak ada komentar:

Posting Komentar