×

UniFi - How to Reset Devices to Factory Defaults

Overview

Readers will learn how to reset UniFi devices to factory defaults using different methods.

NOTES & REQUIREMENTS:
  • Applicable to UniFi devices such as Access Points (UAP) and Switches (USW) that are adopted by the UniFi Network Controller.
  • See the UniFi - UDM/UCK: How to Reset the UniFi Controller to Factory Defaults help center article for more information on resetting the UniFi Dream Machine (UDM/UDM-Pro), and UniFi Cloud Key models (UCK-G2, UCK-G2-PLUS, UC-CK).
  • Resetting the device to factory defaults will wipe out any configuration files and device history. Export and save your backup configuration(s) before following the steps from this article.

Table of Contents

  1. Introduction
  2. Forgetting a Device through the UniFi Network Controller
  3. Resetting a Device to Factory Defaults using SSH
  4. Resetting a Device to Factory Defaults using the Physical Reset Button
  5. Troubleshooting Devices that are not Resetting
  6. Related Articles

Introduction

Resetting a device to factory defaults using either of the methods below will will wipe out any configuration files and device history. Afterwards, it is necessary to access the UniFi Controller Web UI and re-adopt the device through the  devices.png  Devices tab. There is more information on adopting UniFi devices in the UniFi - Device Adoption help center article.

ATTENTION: Only follow these steps if your device is not responding or if there is another good reason why a reset is necessary.

Forgetting a Device through the UniFi Network Controller

Follow the steps below to forget a UniFi device through the UniFi Network Controller. This will clear all custom configuration and history from the device and resets it to factory defaults. 

GUI: Access the UniFi Network Controller Web UI.

1. Navigate to the  devices.png  Devices tab and select the device that needs to be forgotten.

2. From the device Properties panel, select the  settings.png  Config tab and expand the Manage Device section.

3. Forget the device by clicking on the Forget button and confirm the action.

ATTENTION: Do not disconnect the power cord or PoE Ethernet cable from the device during the reset process.

Resetting a Device to Factory Defaults using SSH

Follow the steps below to reset a UniFi device to factory defaults using SSH. See the Intro to Networking - How to Establish a Connection Using SSH article for more information on connecting to UniFi devices using SSH. 

1. First make sure that SSH Authentication is enabled through the UniFi Network Controller. If this is already enabled, then proceed to step 6.

GUI: Access the UniFi Network Controller Web UI.

2. When using the Classic Web UI, navigate to the  settings.png  Settings > Sites > Services section and check the Enable advanced features box.

3. Apply the settings.

4. In the same section, scroll down to Device Authentication and check the Enable SSH authentication box.

5. Make a note of the username and view the SSH password by clicking on the  view.png  icon. 

6. Log into the UniFi device using SSH and specify the SSH username and password.

7. Run the below command after logging in to reset the device to factory defaults:

set-default
NOTE: The syswrapper.sh restore-default command can also be used to reset the device.

8. You will lose access to the device after running the command as it will automatically restart during the reset process.

ATTENTION: Do not disconnect the power cord or PoE Ethernet cable from the device during the reset process.

9. Finally, forget the device through the UniFi Network Controller using the above steps.

Resetting a Device to Factory Defaults using the Physical Reset Button

UniFi devices can also be reset to factory defaults using physical reset button. The location of the reset button will differ depending on the UniFi model that you are using. The Quick Start Guide (QSG) for each model displays the location of the reset button and provides more information on the reset process. 

1. Download the Quick Start Guide (QSG) for your device from the UniFi Downloads section.

2. Either search for the model using the search box or expand the model list on the left side of the page.

3. Forget the device through the UniFi Network Controller using the above steps after resetting it to factory defaults.

ATTENTION: Do not disconnect the power cord or PoE Ethernet cable from the device during the reset process.

Troubleshooting Devices that are not Resetting

If despite numerous tries to reset the device, it appears not to be resetting and boots back up to a blue LED, it could be because of one of the following reasons:

1. The device is connecting back to the UniFi Network Controller because it was not forgotten (see the above steps). After reconnecting to the controller and being re-adopted, it is retrieving its old configuration.

2. The reset button was not held down long enough when performing the physical reset steps above.

3. The reset button was held down too long when performing the physical reset steps above. This will initiate the TFTP Recovery process instead of resetting it to factory defaults.

If the UniFi device is not working after the reset process, make sure to try all the other methods described in this article and try swapping out the Ethernet cables and PoE injectors to eliminate any issues related to power or connectivity.

Related Articles

UniFi - How to Create and Restore a Backup

UniFi - UDM/UCK: How to Reset the UniFi Controller to Factory Defaults

UniFi - Device Adoption

UniFi - TFTP Recovery for UniFi Access Points

Was this article helpful?
112 out of 368 found this helpful
Can't find what you're looking for?
Visit our worldwide community of Ubiquiti experts for more answers
Visit the Ubiquiti Community