public function delete($username): bool
    {
        $file_path = Grav::instance()['locator']->findResource('account://' . $username . YAML_EXT);

        return $file_path && unlink($file_path);
    }
public function delete($username): bool
    {
        $file_path = Grav::instance()['locator']->findResource('account://' . $username . YAML_EXT);

        return $file_path && unlink($file_path);
    }
public function delete ( $ username ) : bool { $ file_path = Grav :: instance ( ) [ 'locator' ] -> findResource ( 'account://' . $ username . YAML_EXT ) ; return $ file_path && unlink ( $ file_path ) ; }
Remove user account.

@param string $username

@return bool True if the action was performed
Remove user account .