public function removeDashboard($idDashboard, $login='')
    {
        $login = $login ? $login : Piwik::getCurrentUserLogin();

        Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);

        $this->model->deleteDashboardForUser($idDashboard, $login);
    }
public function removeDashboard($idDashboard, $login='')
    {
        $login = $login ? $login : Piwik::getCurrentUserLogin();

        Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);

        $this->model->deleteDashboardForUser($idDashboard, $login);
    }
public function removeDashboard ( $ idDashboard , $ login = '' ) { $ login = $ login ? $ login : Piwik :: getCurrentUserLogin ( ) ; Piwik :: checkUserHasSuperUserAccessOrIsTheUser ( $ login ) ; $ this -> model -> deleteDashboardForUser ( $ idDashboard , $ login ) ; }
Removes a dashboard according to given dashboard id and login

Note: Only a super user is able to remove dashboards for other users

Also note: It is allowed to delete the first dashboard for a user, BUT
that will cause buggy behavior if a new dashboard is not immediately added.
Deleting the first dashboard (with ID = 1) should only be done for automation
purposes.

@param int $idDashboard id of the dashboard to be removed
@param string $login  Login of the dashboard user [defaults to current user]
Removes a dashboard according to given dashboard id and login