
DELETE FROM metadata_message;

DELETE FROM message_registeres_files;
DELETE FROM registered_file;
DELETE FROM xdstar_message;
select pg_catalog.setval('xdstar_message_id_seq', 1, true);
DELETE FROM xdstar_message_resp;
select pg_catalog.setval('xdstar_message_resp_id_seq', 1, true);

delete from sys_conf_type_usages where system_configuration_id in (select id from system_configuration where name not like 'Gazelle%');
delete from system_configuration where name not like 'Gazelle%';

delete from cmn_validator_usage;
select pg_catalog.setval('cmn_validator_usage_id_seq', 1, true);