function delete_object($obj)
    {
        $obj_name = NULL;
        if (is_object($obj)) {
            if (get_class($obj) == "CF_Object") {
                $obj_name = $obj->name;
            }
        }
        if (is_string($obj)) {
            $obj_name = $obj;
        }
        if (!$obj_name) {
            throw new SyntaxException("Object name not set.");
        }
        $status = $this->cfs_http->delete_object($this->name, $obj_name);
        #if ($status == 401 && $this->_re_auth()) {
        #    return $this->delete_object($obj);
        #}
        if ($status == 404) {
            $m = "Specified object '".$this->name."/".$obj_name;
            $m.= "' did not exist to delete.";
            throw new NoSuchObjectException($m);
        }
        if ($status != 204) {
            throw new InvalidResponseException(
                "Invalid response (".$status."): ".$this->cfs_http->get_error());
        }
        return True;
    }
function delete_object($obj)
    {
        $obj_name = NULL;
        if (is_object($obj)) {
            if (get_class($obj) == "CF_Object") {
                $obj_name = $obj->name;
            }
        }
        if (is_string($obj)) {
            $obj_name = $obj;
        }
        if (!$obj_name) {
            throw new SyntaxException("Object name not set.");
        }
        $status = $this->cfs_http->delete_object($this->name, $obj_name);
        #if ($status == 401 && $this->_re_auth()) {
        #    return $this->delete_object($obj);
        #}
        if ($status == 404) {
            $m = "Specified object '".$this->name."/".$obj_name;
            $m.= "' did not exist to delete.";
            throw new NoSuchObjectException($m);
        }
        if ($status != 204) {
            throw new InvalidResponseException(
                "Invalid response (".$status."): ".$this->cfs_http->get_error());
        }
        return True;
    }
function delete_object ( $ obj ) { $ obj_name = NULL ; if ( is_object ( $ obj ) ) { if ( get_class ( $ obj ) == "CF_Object" ) { $ obj_name = $ obj -> name ; } } if ( is_string ( $ obj ) ) { $ obj_name = $ obj ; } if ( ! $ obj_name ) { throw new SyntaxException ( "Object name not set." ) ; } $ status = $ this -> cfs_http -> delete_object ( $ this -> name , $ obj_name ) ; #if ($status == 401 && $this->_re_auth()) { #    return $this->delete_object($obj); #} if ( $ status == 404 ) { $ m = "Specified object '" . $ this -> name . "/" . $ obj_name ; $ m .= "' did not exist to delete." ; throw new NoSuchObjectException ( $ m ) ; } if ( $ status != 204 ) { throw new InvalidResponseException ( "Invalid response (" . $ status . "): " . $ this -> cfs_http -> get_error ( ) ) ; } return True ; }
Delete a remote storage Object

Given an Object instance or name, permanently remove the remote Object
and all associated metadata.

Example:
<code>
# ... authentication code excluded (see previous examples) ...
#
$conn = new CF_Authentication($auth);

$images = $conn->get_container("my photos");

# Delete specific object
#
$images->delete_object("disco_dancing.jpg");
</code>

@param obj $obj name or instance of Object to delete
@return boolean <kbd>True</kbd> if successfully removed
@throws SyntaxException invalid Object name
@throws NoSuchObjectException remote Object does not exist
@throws InvalidResponseException unexpected response
Delete a remote storage Object