code: def remove(release):
      '''
      Remove a specific version of the kernel.
  
      release
          The release number of an installed kernel. This must be the entire release
          number as returned by :py:func:`~salt.modules.kernelpkg_linux_apt.list_installed`,
          not the package name.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kernelpkg.remove 4.4.0-70-generic
      '''
      if release not in list_installed():
          raise CommandExecutionError('Kernel release \'{0}\' is not installed'.format(release))
  
      if release == active():
          raise CommandExecutionError('Active kernel cannot be removed')
  
      target = '{0}-{1}'.format(_package_prefix(), release)
      log.info('Removing kernel package %s', target)
  
      __salt__['pkg.purge'](target)
  
      return {'removed': [target]f remove(release):
      '''
      Remove a specific version of the kernel.
  
      release
          The release number of an installed kernel. This must be the entire release
          number as returned by :py:func:`~salt.modules.kernelpkg_linux_apt.list_installed`,
          not the package name.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kernelpkg.remove 4.4.0-70-generic
      '''
      if release not in list_installed():
          raise CommandExecutionError('Kernel release \'{0}\' is not installed'.format(release))
  
      if release == active():
          raise CommandExecutionError('Active kernel cannot be removed')
  
      target = '{0}-{1}'.format(_package_prefix(), release)
      log.info('Removing kernel package %s', target)
  
      __salt__['pkg.purge'](target)
  
      return {'removed': [target]}
docs: Remove a specific version of the kernel.
  
      release
          The release number of an installed kernel. This must be the entire release
          number as returned by :py:func:`~salt.modules.kernelpkg_linux_apt.list_installed`,
          not the package name.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' kernelpkg.remove 4.4.0-70-generic