Dear Hraban,

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)

> - 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. 

> - 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?

> - 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?

Best regards,
        Samuele

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
-- 
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>
INSPIRE Service Manager ** <http://inspirehep.net/>

Reply via email to