ep_delete_after_delay
Find a file
Luc Didry 5ef6bb638a Merge branch 'master' into 'master'
« éditer » remplacé par « modifier »

See merge request !1
2017-02-27 10:20:47 +01:00
locales « éditer » remplacé par « modifier » 2017-02-27 10:18:36 +01:00
static/js Fix compatibility with Etherpad 1.6.1 2017-01-07 16:16:48 +01:00
.ep_initialized First import 2015-03-02 23:44:24 +01:00
delete.js Add loop option 2016-11-15 13:35:57 +01:00
ep.json Fix #1 and #3 2016-02-25 04:31:09 +01:00
LICENSE Add license 2016-05-04 09:40:52 +02:00
package.json Fix compatibility with Etherpad 1.6.1 2017-01-07 16:16:48 +01:00
README.md Add loop option 2016-11-15 13:35:57 +01:00

Ep_delete_after_delay

Etherpad-Lite plugin that deletes your pads after a configured delay.

Configuration

Install the plugin and put this in your settings.json:

"ep_delete_after_delay": {
    "delay": 86400, // one day, in seconds
    "loop": true,
    "loopDelay": 3600, // one hour, in seconds
    "deleteAtStart": true,
    "text": "The content of this pad has been deleted since it was older than the configured delay."
},

delay (mandatory) delay in seconds with no edition of the pad before deletion. You can't put 7*86400 for a week, you have to put 604800.

loop binary, tells if you want to use deletion loops (true) or not (false) (if you use an external script for example). Default is true.

loopDelay delay in seconds between deletion loops. Deletion loop will check all pads to see if they have to be deleted. You can't put 60*60 for a hour, you have to put 3600. Default is one hour.

deleteAtStart binary, tells if you want to start a deletion loop at Etherpad startup. Default is true.

text is the text that will replace the deleted pad's content. Default is what is in the example above.

License

Apache License, Version 2.0. See LICENSE file