diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua b/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua
index 4513d59c4df78b90c74a98e518bef73cdd04ea11..a3ce7f62c498de18e899d755a6684362c7c36b44 100644
--- a/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua
+++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/model/cbi/admin/remote.lua
@@ -40,7 +40,7 @@ if fs.access("/etc/config/dropbear") then
   keys = s:option(TextValue, "_data", "")
   keys.wrap    = "off"
   keys.rows    = 5
-  keys.rmempty = false
+  keys.rmempty = true
 
   function keys.cfgvalue()
     return fs.readfile("/etc/dropbear/authorized_keys") or ""
@@ -51,6 +51,10 @@ if fs.access("/etc/config/dropbear") then
       fs.writefile("/etc/dropbear/authorized_keys", value:gsub("\r\n", "\n"))
     end
   end
+
+  function keys.remove(self, section)
+    fs.remove("/etc/dropbear/authorized_keys")
+  end
 end
 
 s = m:section(TypedSection, "_pass", nil,