Restore deleted registration form

Hi,
is there a way to restore a registration form deleted by mistake?

Thank you for your time.

All the best,
Cristiano.

RegistrationForm.get(ID).is_deleted = False
db.session.commit()

in indico shell. You can find the ID of the registration form e.g. in the event log (if you click on the filter button while viewing a log entry related to the registration form, it even goes in the address bar where it’s easy to copy from)

Thank you very much for you answer.

I tried this solution but it doesn’t seem to work, the form is not visible in the list of registration forms after using that commands.

This is what I did:

root@indico ~]# su - indico
Last login: Mon Apr  7 09:05:47 CEST 2025 on pts/0
(indico) [indico@indico ~]$ source ~/.venv/bin/activate
(indico) [indico@indico ~]$ indico shell
Indico v3.3.6 is ready for your commands
In [1]: Registration.get(form_ID).is_deleted = False

In [2]: db.session.commit()

In [3]: exit

where form_ID can be found from the event logs, in the URL bar of my browser, as you said:

https://<hostname>/event/3090/manage/logs/?meta.registration_form_id=form_ID

Am I forgetting something?

Thank you.

Cheers,
Cristiano.

oh, i thought you deleted a registration and not the whole form.

in that case use RegistrationForm instead of Registration

Thank you!
It worked like a charm!

All the best,
Cristiano.

It might be helpful to add a “Trash / Recycle Bin” in events and administration to view/restore deleted registrations / registration forms / events.

1 Like