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

DECLARE
        p_url_id                alias for $1;
BEGIN
        delete from fs_urls where url_id= p_url_id;

        PERFORM fs_simple_object__delete(p_url_id);

        return 0;
END;
$$ language plpgsql;