public function execute()
 {
     if (!ContestSettings::get('contestDeletionEnabled')) {
         $this->dieUsage('Contest deletion is disabled', 'contestdeletiondisabled');
     }
     global $wgUser;
     if (!$wgUser->isAllowed('contestadmin') || $wgUser->isBlocked()) {
         $this->dieUsageMsg(array('badaccess-groups'));
     }
     $params = $this->extractRequestParams();
     $everythingOk = true;
     foreach ($params['ids'] as $id) {
         $contest = new Contest(array('id' => $id));
         $everythingOk = $contest->removeAllFromDB() && $everythingOk;
     }
     $this->getResult()->addValue(null, 'success', $everythingOk);
 }