--
-- acs_message__delete/1
--
create or replace function acs_message__delete(
  integer
) returns int4 as $$

declare
    p_message_id    alias for $1;
begin
    delete from acs_messages where message_id = p_message_id;
    perform content_item__delete(p_message_id);
    return 1;
end;$$ language plpgsql;