'Delete the PlexPy notification logs.
Required paramters:
None
Optional parameters:
None
Returns:
None'

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

    data_factory = datafactory.DataFactory()
    result = data_factory.delete_notification_log()
    res = ('success' if result else 'error')
    msg = ('Cleared    notification    logs.' if result else 'Failed    to    clear    notification    logs.')
    return {'result': res, 'message': msg}
