This article provides steps to clean up storage LUN which is part of array based replication.
Follow the below steps to perform the storage LUN cleanup at SRM and ESXi layer before deleting from storage array.
1. On the storage array end make sure the LUN is not part of any consistency group.
2. On the site recovery below steps needs to be performed:
Remove Protection from a Virtual Machine
How to Migrate Your Virtual Machine with Storage vMotion
Add and Remove Datastore Groups or Virtual Machines to or from a Protection Group
3. Break replication of the LUN-pair (corresponding to the LUN that needs to be removed/decommissioned). This should be done from the Storage array.
4. Rescan arrays from site recovery to detect the changes being done.
Rescan Arrays to Detect Configuration Changes
5.Once the above steps are performed at SRM and storage array then you can follow the steps to detach the LUN from ESXi.
Detach a LUN device from ESXi hosts
6.Rescan the storage at cluster on vCenter UI.
Performing a rescan of the storage on an ESXi host
7.After above steps are followed LUN can be deleted on storage array.