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

declare
  del__symlink_id             alias for $1;  
begin

  delete from cr_symlinks
    where symlink_id = del__symlink_id;

  PERFORM content_item__delete(del__symlink_id);

  return 0; 
end;$$ language plpgsql;