UniFi - Remove device by mac address

Modified on Wed, 21 Dec, 2022 at 4:22 PM


Run the mongo database util and change xx:xx:xx:xx:xx:xx to the mac address of your rogue device
mongo --port 27117 ace --eval 'db.device.remove({"mac":"xx:xx:xx:xx:xx:xx"})'


Restart your UniFi controller e.g. if running on a CloudKey (Linux). Use 'sudo' command if not logged in as root.

systemctl restart unifi

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article