Can I Lock surveys from accidental deletion?

1 year 2 months ago #191319 by BHS_Kez

We have a few surveys that we always have running, these are primarily registration of interest surveys for our school.
In the past, we have had accidental deletions of these surveys which creates a lot of work for me to rebuild and attempt to recover applications/responses we hadn't downloaded prior to the accidental deletion.

Is there a way to lock specific surveys out so that you can't delete them without administrator approval?

I have looked in so many places and I can't find an option like that anywhere, am I missing something?

Thank you in advance.
The topic has been locked.
LimeSurvey Partners
1 year 2 months ago #191322 by gabrieljenik
What about removing the delete permissions ?

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at

The topic has been locked.
1 year 2 months ago #191323 by BHS_Kez
I can, but I was hoping for a quicker solution than going into each survey and removing the 'delete' permission for each user on each survey.

I guess that's the only way?

I was hoping for a way I could tick a selection of surveys and choose a lock option, so that even those that have permission to delete would need to enter admin credentials to delete it, making them double check what they're deleting is correct.
The topic has been locked.
1 year 2 months ago #191337 by DenisChenu
You can create a sample plugin to disallow deletion for all user except some.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The topic has been locked.
1 year 2 months ago #191346 by fradeff
may I suggest just a simple old good backuping planning of the mysql db?
I have many ls, with crontabs running mysqldumps daily (turn every week), weekly (turn every month), monthly (turn every year) and yearly backup
with that quite simple system I was able to restore surveys that were sometime deleted even many months before I was alerted by the administrator of the survey
the only disagrement of this method is that I have to run the backup on a localhost instance of limesurvey, but as it is not a daily task it's ok like that
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now