public function deleteRecordings($recordId = null) { $bbb = new BBB($this->salt, $this->url); $recordingParams = array('recordId' => $recordId); $itsAllGood = true; try { $result = $bbb->deleteRecordingsWithXmlResponseArray($recordingParams); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; $itsAllGood = false; } if ($itsAllGood == true) { print_r($result); } }