'Flush out all of the temporary sessions in the database.'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of('admin'))
@addtoapi()
def delete_temp_sessions(self, **kwargs):

    result = database.delete_sessions()
    if result:
        return {'result': 'success', 'message': 'Temporary    sessions    flushed.'}
    else:
        return {'result': 'error', 'message': 'Flush    sessions    failed.'}
