Am 2013-11-12 um 14:26 schrieb Samuele Kaplun <[email protected]>:

Dear Samuele,

merci bien!

> In data martedì 12 novembre 2013 12:50:29, Henning Hraban Ramm ha scritto:
>> I feel really stupid, but I can’t find how to delete anything in my invenio
>> database (except directly in MySQL, that I would like to avoid): 
> 
> Invenio is designed to for archiving and digital preservation. So it's very 
> difficult to delete things :-) (half-joking)

I guess, but being admin must have some rights… ;-)

>> - whole records with their files (preferably several at once)
> 
> There is no "public" hard delete facility in Invenio (but see the Post 
> Scriptum), however you can obtain a soft-deletion by "correcting" a record by 
> putting 980__c DELETED. This will exclude the records from all the indexes 
> and 
> collections, and will basically make it unavailable. However all its files 
> will still be stored on disk. 

Ok, that’s a start, and I can delete the files from the disk manually.
(We’ve only about 250 GB for our files, and there will be a lot of small 
videos…)

>> - broken records (leftovers of my submit experiments; record merge doesn’t 
>>  work)
> 
> Can you give a bit more details about what does not work and what you are 
> trying to achieve by merging broken records? Also can you remember us which 
> Invenio release/git commit are you using?

When my WebSubmit configuration was not quite right, every submit created 2 
records, one containing only the file, the other the metadata. I tried „record 
merge“ with the two record numbers and different options, but nothing happened.

>> - incomplete submits (the JS delete link doesn’t do anything, didn’t check 
>>  yet if I can catch an error)
> 
> There might be indeed some bug there. What version indeed are you using?

I’m tracing master with my own branch, version is v1.1.2.684-296ff-dirty

> P.s. actually in the latest Invenio master branch there is a hidden facility 
> in the bibupload_regression_test module to wipe completely any trace of 
> records created by regression test. If what you want to do is wiping tests 
> records you can do (at your python prompt as Apache user):
> 
> $ from invenio.bibupload_regression_tests import \ 
>                               wipe_out_record_from_all_tables
> $ wipe_out_record_from_all_tables(123)
> 
> Of course use this with care as it will completely erase any trace of a 
> record 
> and the referenced files

Great, I’ll try. At the moment there’s not much to lose.


Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)







Reply via email to