Contenuto principale

Remove Wi-Fi App and Restore Network Settings

R2026b

When you no longer need to use a Raspberry Pi® hotspot for Wi-Fi® setup, you can remove the Wi-Fi application from the hardware and restore the system to its original network state. This is useful when you no longer need the setup capability on Raspberry Pi. To do so, run this command in MATLAB®.

app.uninstall;
Starting cleanup of WiFi provisioning components...
Stopping and disabling my_create_ap.service...
Stopping and disabling my_wifi_app.service...
Removing service files...
Removing application files...
Uninstalling create_ap...
Cleaning up network configuration...
Warning: Failed to restart networking.
Cleanup completed successfully.

This cleanup command:

  1. Stops and disables the system services that manage the hotspot and the web portal.

  2. Removes setup service files from /etc/systemd/system/ and deletes the generated application folder from the Raspberry Pi filesystem.

  3. Uninstalls create_ap and related hotspot tooling.

  4. Removes virtual network interface ap0 created for access point operation.

  5. Restores original network configuration to its pre‑deployment state and restarts network services to apply the restored configuration.

After cleanup:

  • Raspberry Pi no longer hosts a hotspot or configuration portal.

  • All setup services and files are removed.

Reboot Raspberry Pi to make sure the restored configuration takes effect.