Hi @sns,
Per my test, I have a csv like following pic
And you can read the csv by following script then delete the list in these Url
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
#Read urls in csv
$Items = Import-Csv -Path C:\xie\SPurl.csv
$Urls = $Items.Url
Write-Output $Urls
#loop each url and get the list in site
foreach($Url in $Urls){
$SPWeb = Get-SPWeb $Url
$SPList = $SPWeb.Lists["NintexWorkflowHistory"]
$SPList.AllowDeletion = $true
$SPList.Update()
$SPList.Delete()
write-host "List has been deleted successfully!"
}
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.