diff --git a/uninstall.php b/uninstall.php
index c4c7956..b1375b6 100644
--- a/uninstall.php
+++ b/uninstall.php
@@ -95,21 +95,15 @@ if (!empty($version)) {
sql("DELETE FROM kvstore WHERE module = 'sccpsettings'");
sql("DELETE FROM kvstore WHERE module = 'Sccp_manager'");
}
-}
-outn("
" . _('Removing all Sccp_manager tables') . "");
-foreach ($sqlTables as $table) {
- $sql = "DROP TABLE IF EXISTS {$table}";
- $result = $db->query($sql);
- if (DB::IsError($result)) {
- die_freepbx($result->getDebugInfo());
- }
- $sql = "DROP VIEW IF EXISTS sccpdeviceconfig";
- $result = $db->query($sql);
- if (DB::IsError($result)) {
- die_freepbx($result->getDebugInfo());
- }
- unset($result);
-}
- outn("" . _("Uninstall Complete") . "");
- return true;
+ }
+ // FreePbx removes all tables via module.xml, and uninstaller will error
+ // If the tables do not exist.
+ //outn("" . _('Removing all Sccp_manager tables') . "");
+ //foreach ($sqlTables as $table) {
+ //$sql = "DROP TABLE IF EXISTS {$table}";
+ //}
+ outn("" . _('Removing all Sccp_manager views') . "");
+ $db->query("DROP VIEW IF EXISTS sccpdeviceconfig");
+
+ outn("" . _("Uninstall Complete") . "");
?>