cancel
Showing results for 
Search instead for 
Did you mean: 

How to Delete many files at once

jlabuelo
Champ on-the-rise
Champ on-the-rise
Good Afternoon all

This might be a stupid question, sorry if so, but is there any way I can run a search and delete all the returned files at once?, or copy them all at once or cut them all at once and place them in another folder.

Imagine that I have a space with files from January 2010 to April 2010, and I want to delete all the files of January 2010. Is there any way that I can search for these files and delete/copy/cut them all at once instead of doing it manually one by one?

If you know any trick or there is a way I dont know will appreciate if you can share it with us.

We run an Alfresco 3.0 Stable version over MySQL5.1 and Windows OS.

Thanks a lot!!
11 REPLIES 11

mabayona
Champ on-the-rise
Champ on-the-rise
Two ways:

1) using webdav or CIFS inteface
2) using a script written in javascript and running it from the alfresco explorer

stevereiner
Champ in-the-making
Champ in-the-making
FlexSpaces has support for multiple selection with delete (has a confirm dialog).
http://forge.alfresco.com/projects/flexspaces/

It has advanced search like alfresco explorer client that supports date range.
To allow delete from search view, not just from doclib view, FlexSpacesViewBase.as enableMenusAfterSelection() would need to be overriden

Alfresco Share
1. multiple select delete with confirm dialog in  site doclibs
2. multiple select delete also in repository doclib view  (Alfresco 3.3)

tommorris
Champ in-the-making
Champ in-the-making
Or FTP…

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi thanks for the answers

Will try this FlexSpaces package. FTP could be an option, but how can we identify the files we want to delete? I mean if we can find the files using the advance search with metadata information, that will not be possible with FTP will be?

Thanks

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi Mabayona

Thanks for the answer, sorry did not see your message, in the post. The option of using a JavaScript to remove them sounds good, problem I see know is how to launch it.

I mean the mean problem is that we need to be able to identify the content we want to delete, this is why we thought to run an advanced search first and then delete all the results.

I know how to create the JS code to remove the content, but how can I launch it so when a search produces a "list of results" the script acts against them.

I you think about any other way to identify the list of files I want to delete (using filters as dates, metadata values…) and run the script I am also open to hear it  Smiley Very Happy

If not I think we will try the FlexSpaces Solution  Smiley Happy

Thanks once more for the help!!

mabayona
Champ on-the-rise
Champ on-the-rise
If you use the javascript solution (something VERY recommendable to learn and use for daily administrative work in Alfresco) implies that you have to do the search also in javascript.

The resulting script can be launched either as a rule or as an action ("Run action") from the alfresco explorer.

jlabuelo
Champ on-the-rise
Champ on-the-rise
Sorry for this questions, I have used JavaScript but to be launched as a rule when an action happens. I dont get to understand how I can get this requirements using this approach

a) Let the user decide the items they would like to delete. I mean how we can pass to the JS code filters to run the search like: dates, or values for metadata, or the space it should searh in. I mean how can we let the user pass those filters as parameters to the JS code in Alfresco?

b) Also the JS code normally we use to launch it as a rule, meaning that it is launched with a situation happens in an space…. but how can we run the JS when the user can require the deletion once or twice a year?

Thanks for the answer in advance, sorry our knowledge in JS for Alfresco seems to be quite limited  Smiley Very Happy

mabayona
Champ on-the-rise
Champ on-the-rise
If it is once or twice a year, probably the best approach is to seat down with the user and modify and run the JS yourself. Otherwise the alternative is to develop a dedicated webscript with HTML interface to let the user do by him/herself.

Alternative, although not easy, is to use flex spaces… or upgrade to 3.2/3.3 and do it via share.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
I have solution for you develop multi select ( gmail like ), and just add delete selected . I guess this would solve all your problems.