If your intention is to clear existing autofill suggestions in the Windows 11 search box without disabling search functionality, you can use Windows Registry. Open Registry Editor (Win + R, type regedit, Enter). Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search\History. Right-click the History key and select Delete to remove all saved search entries.
Alternatively, you can use PowerShell to clear the search history:
Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search\History" -Recurse
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin