def rm_special(user, special, cmd):
 lst = list_tab(user)
 ret = 'absent'
 rm_ = None
 for ind in range(len(lst['special'])):
  if ((lst['special'][ind]['cmd'] == cmd) and (lst['special'][ind]['spec'] == special)):
   lst['special'].pop(ind)
   rm_ = ind
 if (rm_ is not None):
  ret = 'removed'
  comdat = _write_cron_lines(user, _render_tab(lst))
  if comdat['retcode']:
   return comdat['stderr']
 return ret

def rm_special ( user , special , cmd ) : lst = list_tab ( user ) ret = 'absent' rm_ = None for ind in range ( len ( lst [ 'special' ] ) ) : if ( ( lst [ 'special' ] [ ind ] [ 'cmd' ] == cmd ) and ( lst [ 'special' ] [ ind ] [ 'spec' ] == special ) ) : lst [ 'special' ] . pop ( ind ) rm_ = ind if ( rm_ is not None ) : ret = 'removed' comdat = _write_cron_lines ( user , _render_tab ( lst ) ) if comdat [ 'retcode' ] : return comdat [ 'stderr' ] return ret
remove a special cron job for a specified user .