deleting deleted files and restoring

550 views
Skip to first unread message

Toomas

unread,
Feb 8, 2014, 7:38:09 AM2/8/14
to resour...@googlegroups.com
Hello,

I have questions about deleting and restoring resources

1) How to permanently delete resources from the RS folders? My current procedure is as follows:
In the single resource view: delete 
or
In Manage collections: Edit -> Delete all resources in this collection

These procedures do not delete the resources but mark them as deleted (am I right?). I can find the deleted resources in 'manage resources'-> 'view deleted resources'. 
To delete them permanently you have to delete theme once again. I.e. to repeat the above procedure. Either to delete the resources one by one, or copy the deleted images to a collection and bulk delete via 'Delete all resources in this collection' (am I right?).

The above procedure is rather complicated, and it would be more intuitive to bulk delete the resources from a "trash bin", from the 'view deleted resources' query result. Please tell me if there a procedure available for this?

2) How to restore a deleted resource? If I copy deleted resource back to a collection, it maintains its deleted status (am I right?). And its 
copy remains in the "trash". BIG PROBLEM: When I now permanently delete the "trashed" resources, I also permanently lose those that have been restored to a collection! (am I right?)

3) Another question: what happens to ID-s of deleted resources. It seems to me that they remain intact whereas new resources get new ID-s. Which means that some global scripts process all the empty ID-s (like the script for rebuilding previews).

I would appreciate if anybody explains the procedure of deleting and restoring resources. Sorry for the long message, I hope that in combination with answers this can be used for a user manual. 

Toomas

Allison Stec

unread,
Feb 10, 2014, 8:47:04 AM2/10/14
to ResourceSpace
1) You can use the purge_deleted_resources.php script found in ../pages/tools/ to permanently delete all "deleted" resources. This will also remove related data from the database. You do need to adjust the script before running it: set $PURGE_ENABLED = true;

2) You need to edit the status of a deleted resource to restore it. When editing the resource (or collection of resources) change status from "deleted" to "active". This will remove it from the "view deleted resources" area as well as remove the "deleted" tag from the resource's view page.

3) resource ids are never re-used. this makes sure that there's never a duplicate resource. when scripts like update_previews.php are run, they look to the resource ids found in the db rather than assuming a resource exists for each consecutive id number.

Allison Stec
Asset Management Specialist
Colorhythm
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 415-399-9928

as...@colorhythm.com


--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Cygnet Midwest

unread,
Apr 16, 2019, 2:51:03 PM4/16/19
to ResourceSpace
Is there an easier way yet to delete resources besides using this script? I've tried using the script both in the browsers and in the command line (using both ssh and curl) and all I get is "error - aborting"

I don't understand why there isn't a simple UI to permanently delete resources.

Any help you can give with this script is appreciated.

Thank you,
Colin
To unsubscribe from this group and stop receiving emails from it, send an email to resour...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages