-- -- acs_activity__delete/1 -- create or replace function acs_activity__delete( integer ) returns int4 as $$ declare delete__activity_id alias for $1; begin -- Cascade will cause delete from acs_activities -- and acs_activity_object_map PERFORM acs_object__delete(delete__activity_id); return 0; end;$$ language plpgsql;