Create a new deployment package and add a Command step using command: RMDIR "C:\Win11Upgrade" /S /Q
This can be used on all deployment packages if the installation file/folders have been copied locally and you want to clean up at the end of the deployment.
This requires elevated rights so using a package by itself use System account.
If this command is added to an existing deployment package, the credentials used for deployment should work for the deletion.