Hi @Sid
Reading your problem statement, you want to delete the directory "azure-digital-twins-unreal-integration". If this is the case you need to:
- Open the Azure Cloud Shell
- Navigate to your home directory
PS /home> cd $home
- Check the directory exists
PS/home/alistair> dir
Directory: /home/alistair
UnixMode User Group LastWriteTime Size Name
-------- ---- ----- ------------- ---- ----
drwxr-xr-x alistair alistair 11/10/2022 10:11 4096 azure-digital-twins-unreal-integration
lrwxrwxrwx alistair alistair 11/10/2022 10:10 22 clouddrive -> /usr/csuser/clouddrive
4. Remove the directory and check again
PS /home/alistair> Remove-Item -Path ./azure-digital-twins-unreal-integration/ -Recurse -Force
PS /home/alistair> dir
Directory: /home/alistair
UnixMode User Group LastWriteTime Size Name
-------- ---- ----- ------------- ---- ----
lrwxrwxrwx alistair alistair 11/10/2022 10:10 22 clouddrive -> /usr/csuser/clouddrive
With regards to your other error "The value of deployment parameter 'servicePrincipalObjectId'", the deployment script creates an Azure AD App Registration and Service Principal, therefore you need to ensure that the account running the script has sufficient permissions to perform this action.
I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.
Kind Regards
Alistair