code: def archive_all_alerts(self):
          
          js = json.dumps({'cmd': 'archive-all-alarms'})
          params = urllib.urlencode({'json': js})
          answer = self._read(self.api_url + 'cmd/evtmgr', params)
docs: Archive all Alerts