CREATE OR REPLACE PROCEDURE delete_mod_data(mod_id_p bigint)
    LANGUAGE SQL
AS $$
DELETE FROM units WHERE mod_id = mod_id_p;
DELETE FROM buildings WHERE mod_id = mod_id_p;
DELETE FROM weapons WHERE mod_id = mod_id_p;
DELETE FROM abilities WHERE mod_id = mod_id_p;
DELETE FROM researches WHERE mod_id = mod_id_p;
DELETE FROM ability_environments WHERE mod_id = mod_id_p;
$$;