For many older smartphones, you can turn off the phone, then hold the Volume Down and Power buttons (or Camera + Power on Lumias) to enter recovery mode and wipe the device.
To give you the best advice, what is the of your Nokia phone? nokia-security-code-removal-tool-v1-8-4-free-download
The Nokia Security Code Removal Tool v1.8.4 is only recommended for very old, keypad-based Nokia feature phones. For any smartphone built within the last 10-15 years, this tool will not work. For many older smartphones, you can turn off
Primarily older, non-Android Nokia handsets (feature phones). Key Features & Capabilities For any smartphone built within the last 10-15
It may not work on later BB5 (Baseband 5) phones, which often require hardware-based tools like JAF or Cyclone Box. Modern Alternatives for Nokia Security Issues
The "Nokia Security Code Removal Tool v1.8.4" is a legacy utility designed for older, feature-phone-era Nokia devices (DCT3, DCT4, and some BB5 models) to reset or calculate master codes to bypass user-set security codes.