public function destroy()
 {
     if ($dataEntryId = $this->_getDataEntryId()) {
         $this->_client()->baseEntry->delete($dataEntryId);
     }
     /** @var \Kaltura_Client_Client $rootClient */
     $c = $this->_container;
     if (!empty($c['adminConsoleUser']) && !empty($c['adminConsolePassword']) && !empty($c['serviceUrl']) && !empty($c['partnerId'])) {
         Helper\Client::deletePartner($c['serviceUrl'], $c['adminConsoleUser'], $c['adminConsolePassword'], $c['partnerId']);
     }
     /** @var KmigAdapter $adapter */
     $adapter = $this->_container['phpmig.adapter'];
     $adapter->destroy();
     self::clearCaches();
 }
<?php

require_once __DIR__ . '/../lib/Kaltura/autoload.php';
require_once __DIR__ . '/../vendor/autoload.php';
\Kmig\Helper\Client::deletePartner('kaltura.local', '*****@*****.**', 'Kaltura1!', '118');