code: public static function delete($path)
    {
      if ( !Folder::exists($path) ){
        return true;
      }
      
      $path = Path::clean($path);
      
      if ( trim($path) === '' ){
        throw new Exception(Helper::getTranslation('FAILED_DELETING').' : Cannot delete root path');
      }
      
      $fs = new Filesystem();
      
      try {
        $fs->remove($path);
      }
      catch(IOExceptionInterface $e){
        throw new Exception(Helper::getTranslation('FAILED_DELETING').' - ('.$e->getMessage().')');
      }
      
      return true;
    }
docs: Delete a folder.
  
  @param   string    $path     The path to the folder to delete.
  @return   boolean   True on success
  @throws   Exception