PG_LO_UNLINK(3) 														   PG_LO_UNLINK(3)

pg_lo_unlink - Delete a large object

SYNOPSIS
bool pg_lo_unlink (resource $connection, int $oid) DESCRIPTION
pg_lo_unlink(3) deletes a large object with the $oid. Returns TRUE on success or FALSE on failure. To use the large object interface, it is necessary to enclose it within a transaction block. Note This function used to be called pg_lounlink(3). PARAMETERS
o $connection - PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection is the last connection made by pg_connect(3) or pg_pconnect(3). o $oid - The $OID of the large object in the database. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 pg_lo_unlink(3) example <?php // OID of the large object to delete $doc_oid = 189762345; $database = pg_connect("dbname=jacarta"); pg_query($database, "begin"); pg_lo_unlink($database, $doc_oid); pg_query($database, "commit"); ?> SEE ALSO
pg_lo_create(3), pg_lo_import(3). PHP Documentation Group PG_LO_UNLINK(3)