--
-- recurrence__delete/1
--
create or replace function recurrence__delete(
  integer
) returns int4 as $$
 
declare 
       delete__recurrence_id alias for $1; 
begin

       delete from recurrences
       where  recurrence_id = delete__recurrence_id;

       return 0;

end;$$ language plpgsql;