System maintenance: clear down email logs on sub-production


//--NOT TO BE RUN ON PRODUCTION
var gr=new GlideRecord('sys_email');
gr.addQuery('type!=received^ORtype=NULL');
//gr.query();
//gs.print(gr.getRowCount());
gr.deleteMultiple()

Comments

Popular posts from this blog

Running transform maps asynchronously

Post a command to the ECC queue for the mid server to initiate a powershell file copy

GlideRecord setValue