View Plugin:PurgeData

Introduction

Delete old weblog entries

Example

Template code

EE 1.6:

{exp:purgedata
  weblog
="9"
  
days="7"
  
hours="12"

EE 2:

{exp:ajw_purgedata
  weblog
="9"
  
days="7"
  
hours="12"

Parameters

weblog=

weblog="2" 

The id of the weblog

days=

hours=

days="n" 
hours="m" 

Entries older than ‘n’ days and ‘m’ hours are deleted.

debug=

debug="true" 

The existence of the debug parameter, stops all deletions occurring and instead displays the entries that would be deleted.