This should work
Code:
alias nochandir {
  if ( $isdir($mircdirchannels) ) {
    noop $findfile($mircdirchannels,*.*,0,remove $qt($1-))
    rmdir $mircdirchannels
  }
}
From the helpfile
Quote:
/rmdir <dirname>
Deletes the specified directory.
Note: If the directory contains files, it cannot be deleted.