'delete all logger file in logs/'

def delete_logger(self):

    content = Refactor.exportHtml()
    resp = QMessageBox.question(self, 'About    Delete    Logger', 'do    you    want    to    delete    logs?', (QMessageBox.Yes | QMessageBox.No), QMessageBox.No)
    if (resp == QMessageBox.Yes):
        Popen(['rm', 'logs/Caplog/*.cap'], stdout=PIPE, shell=False, stderr=PIPE)
        if (len(listdir('logs/ImagesCap')) != 1):
            Popen(['rm', 'logs/ImagesCap/*.png'], stdout=PIPE, shell=False, stderr=PIPE)
            Popen(['rm', 'logs/ImagesCap/*.jpg'], stdout=PIPE, shell=False, stderr=PIPE)
        for keyFile in content['Files']:
            with open(keyFile, 'w') as f:
                (f.write(''), f.close())
        self.FSettings.Settings.set_setting('accesspoint', 'sessions', dumps({}))
        QMessageBox.information(self, 'Logger', 'All    Looger::Output    has    been    Removed...')
