diff --git a/src/api/newaccountmodel.h b/src/api/newaccountmodel.h
index 406e9331e129eafb48c6f8a0389080555c82cf7b..c9c0d47cd50ffac40ee6179a9548a052ddf7ba36 100644
--- a/src/api/newaccountmodel.h
+++ b/src/api/newaccountmodel.h
@@ -128,12 +128,6 @@ public:
     bool changeAccountPassword(const std::string& accountId,
                                const std::string& currentPassword,
                                const std::string& newPassword) const;
-    /**
-     * Enable or disable an account
-     * @param accountId
-     * @param enable
-     */
-    void enableAccount(const std::string& accountId, bool enabled);
     /**
      * Change the avatar of an account
      * @param accountId
diff --git a/src/newaccountmodel.cpp b/src/newaccountmodel.cpp
index 3400ef28f6edde2d2c29b41c584dc82064c15c63..14151bbf08a252e08027cfa1434a0bbea57b83af 100644
--- a/src/newaccountmodel.cpp
+++ b/src/newaccountmodel.cpp
@@ -178,7 +178,12 @@ NewAccountModel::getAccountList() const
 void
 NewAccountModel::setAccountEnabled(const std::string& accountId, bool enabled) const
 {
-     ConfigurationManager::instance().sendRegister(QString::fromStdString(accountId), enabled);
+    auto accountInfo = pimpl_->accounts.find(accountId);
+    if (accountInfo == pimpl_->accounts.end()) {
+        throw std::out_of_range("NewAccountModel::getAccountConfig, can't find " + accountId);
+    }
+    accountInfo->second.enabled = enabled;
+    ConfigurationManager::instance().sendRegister(QString::fromStdString(accountId), enabled);
 }
 
 void
@@ -226,16 +231,6 @@ NewAccountModel::getAccountConfig(const std::string& accountId) const
     return accountInfo->second.confProperties;
 }
 
-void
-NewAccountModel::enableAccount(const std::string& accountId, bool enabled)
-{
-    auto accountInfo = pimpl_->accounts.find(accountId);
-    if (accountInfo == pimpl_->accounts.end()) {
-        throw std::out_of_range("NewAccountModel::getAccountConfig, can't find " + accountId);
-    }
-    accountInfo->second.enabled = enabled;
-}
-
 void
 NewAccountModel::setAlias(const std::string& accountId, const std::string& alias)
 {