public function delete($id) {
        $params = $this->parseUrl($id);

        try {
            $this->getClient()->deleteObject(array(
                'Bucket' => $params['bucket'],
                'Key' => $params['key']
            ));
        } catch (S3Exception $e) {
            return false;
        }

        return true;
    }
public function delete($id) {
        $params = $this->parseUrl($id);

        try {
            $this->getClient()->deleteObject(array(
                'Bucket' => $params['bucket'],
                'Key' => $params['key']
            ));
        } catch (S3Exception $e) {
            return false;
        }

        return true;
    }
public function delete ( $ id ) { $ params = $ this -> parseUrl ( $ id ) ; try { $ this -> getClient ( ) -> deleteObject ( array ( 'Bucket' => $ params [ 'bucket' ] , 'Key' => $ params [ 'key' ] ) ) ; } catch ( S3Exception $ e ) { return false ; } return true ; }
Delete a file from Amazon S3 by parsing a URL or using a direct key.

@param string $id
@return bool
Delete a file from Amazon S3 by parsing a URL or using a direct key .