If you have the canonicalnames of these LUNs, you could just use my Detach-Disk function from LUN juggling in vSphere 5.
If you don't have the canonicalnames, then you can first get a report with the script in LUN report – datastore, RDM and node visibility.