I never used the script, it may have issues with latest unRAID, you can still do it manually (array will be inaccessible during the clear):
1. If disable enable reconstruct write (aka turbo write): Settings -> Disk Settings -> Tunable (md_write_method)
2. Start array in Maintenance mode. (array will not be accessible during the clearing)
3. Identify which disk you're removing
4. For Unraid <6.12 type in the CLI:
dd bs=1M if=/dev/zero of=/dev/mdX status=progress
For Unraid 6.12+ type in the CLI:
dd bs=1M if=/dev/zero of=/dev/mdXp1 status=progress
replace X with the correct disk number
5. Wait, this will take a long time, about 2 to 3 hours per TB.
6. When the command completes, Stop array, go to Tools -> New Config -> Retain current configuration: All -> Apply
7. Go back to Main page, unassign the cleared device. * with dual parity disk order has to be maintained, including empty slot(s) *
8. Click checkbox "Parity is already valid.", and start the array