Yes, you need to explicitly call lo_unlink (). I assume that you are just DELETEd the string that contained the link to it, and this will not delete the actual large object.
If you only refer to it from the same place, you can always create a trigger to do this automatically for you.
Magnus hagander
source share