TRUNCATE TABLE device_credentials;
TRUNCATE TABLE device;
TRUNCATE TABLE asset;
TRUNCATE TABLE device_profile CASCADE;
TRUNCATE TABLE asset_profile CASCADE;
TRUNCATE TABLE rule_node_state;
TRUNCATE TABLE rule_node;
TRUNCATE TABLE rule_chain;