UiPath Studio currently does not have a built-in option for full clean + recompile.
you can manually delete auto-generated folders like .local .settings .screenshots and .cache then reopen the project to trigger recompilation this helps ensure a clean state.
If you found helpful please mark as a solution. Thanks
Happy Automation with UiPath