code: def handle_delete_scan_command(self, scan_et):
          
          scan_id = scan_et.attrib.get('scan_id')
          if scan_id is None:
              return simple_response_str('delete_scan', 404,
                                         'No scan_id attribute')
  
          if not self.scan_exists(scan_id):
              text = "Failed to find scan '{0}'".format(scan_id)
              return simple_response_str('delete_scan', 404, text)
          self.check_scan_process(scan_id)
          if self.delete_scan(scan_id):
              return simple_response_str('delete_scan', 200, 'OK')
          raise OSPDError('Scan in progress', 'delete_scan')
docs: Handles <delete_scan> command.
  
          @return: Response string for <delete_scan> command.