-- -- image__delete/1 -- create or replace function image__delete( integer ) returns int4 as $$ declare v_item_id alias for $1; begin -- This should take care of deleting revisions, too. PERFORM content_item__delete (v_item_id); return 0; end; $$ language plpgsql;