mysql> SELECT CONCAT('drop table ',table_name,';') FROM information_schema.`TABLES` WHERE table_schema='sonar';
+---------------------------------------+
| CONCAT('drop table ',table_name,';') |
+---------------------------------------+
| drop table active_rule_parameters; |
| drop table active_rules; |
| drop table alm_app_installs; |
| drop table analysis_properties; |
| drop table ce_activity; |
| drop table ce_queue; |
| drop table ce_scanner_context; |
| drop table ce_task_characteristics; |
| drop table ce_task_input; |
| drop table ce_task_message; |
| drop table default_qprofiles; |
| drop table deprecated_rule_keys; |
| drop table duplications_index; |
| drop table es_queue; |
| drop table event_component_changes; |
| drop table events; |
| drop table file_sources; |
| drop table group_roles; |
| drop table groups; |
| drop table groups_users; |
| drop table internal_component_props; |
| drop table internal_properties; |
| drop table issue_changes; |
| drop table issues; |
| drop table live_measures; |
| drop table manual_measures; |
| drop table metrics; |
| drop table notifications; |
| drop table org_qprofiles; |
| drop table org_quality_gates; |
| drop table organization_alm_bindings; |
| drop table organization_members; |
| drop table organizations; |
| drop table perm_templates_groups; |
| drop table perm_templates_users; |
| drop table perm_tpl_characteristics; |
| drop table permission_templates; |
| drop table plugins; |
| drop table project_alm_bindings; |
| drop table project_branches; |
| drop table project_links; |
| drop table project_mappings; |
| drop table project_measures; |
| drop table project_qprofiles; |
| drop table projects; |
| drop table properties; |
| drop table qprofile_changes; |
| drop table qprofile_edit_groups; |
| drop table qprofile_edit_users; |
| drop table quality_gate_conditions; |
| drop table quality_gates; |
| drop table rule_repositories; |
| drop table rules; |
| drop table rules_metadata; |
| drop table rules_parameters; |
| drop table rules_profiles; |
| drop table schema_migrations; |
| drop table snapshots; |
| drop table user_properties; |
| drop table user_roles; |
| drop table user_tokens; |
| drop table users; |
| drop table webhook_deliveries; |
| drop table webhooks; |
+------------------------------