public function remove($id, $filename = null)
    {
        if ($filename == null) {
            return FileManager::rmdir($this->getPath($id));
        } else {
            return FileManager::rmfile($this->getPath($id, $filename));
        }
    }
public function remove($id, $filename = null)
    {
        if ($filename == null) {
            return FileManager::rmdir($this->getPath($id));
        } else {
            return FileManager::rmfile($this->getPath($id, $filename));
        }
    }
public function remove ( $ id , $ filename = null ) { if ( $ filename == null ) { return FileManager :: rmdir ( $ this -> getPath ( $ id ) ) ; } else { return FileManager :: rmfile ( $ this -> getPath ( $ id , $ filename ) ) ; } }
Removes a directory by its nested id
Or removes a file insider that nested directory by its nested filename

@param string $id Nested directory's id
@param string $filename Filename to be removed. Optional
@return boolean
Removes a directory by its nested id Or removes a file insider that nested directory by its nested filename