
Hi @john john ,
From your description, you want to remove the app completely from the tenant, please refer to:
#Parameters
$AppCatalogSiteURL = "https://crescent.sharepoint.com/sites/Apps"
$AppName = "File Controller"
#Connect to SharePoint Online App Catalog site
Connect-PnPOnline -Url $AppCatalogSiteURL -UseWebLogin
#Get the from tenant App catalog
$App = Get-PnPApp -Scope Tenant | Where {$_.Title -eq $AppName}
#Remove an App from App Catalog Site
Remove-PnPApp -Identity $App.Id
More information for your reference:
https://www.sharepointdiary.com/2019/09/sharepoint-online-how-to-remove-app.html
https://learn.microsoft.com/en-us/powershell/module/sharepoint-pnp/remove-pnpapp?view=sharepoint-ps
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.