models/Credential.php
public function deleteService($id)
    {
        $data = $this->get($id);

        if (empty($data)) {
            return false;
        }

        if (!$this->delete($id)) {
            return false;
        }

        $file = gplcart_file_absolute($data['data']['file']);

        if (file_exists($file)) {
            unlink($file);
        }

        return true;
    }
public function deleteService($id)
    {
        $data = $this->get($id);

        if (empty($data)) {
            return false;
        }

        if (!$this->delete($id)) {
            return false;
        }

        $file = gplcart_file_absolute($data['data']['file']);

        if (file_exists($file)) {
            unlink($file);
        }

        return true;
    }
public function deleteService ( $ id ) { $ data = $ this -> get ( $ id ) ; if ( empty ( $ data ) ) { return false ; } if ( ! $ this -> delete ( $ id ) ) { return false ; } $ file = gplcart_file_absolute ( $ data [ 'data' ] [ 'file' ] ) ; if ( file_exists ( $ file ) ) { unlink ( $ file ) ; } return true ; }
Delete "Service" credential
@param int
@return bool
Delete Service credential