Deleting a Software Raid Array - Linux

In this case 2 swap partitions on 2 SATA drives had been accidentally forced into a RAID1 array.

We stop the array:
mdadm --stop /dev/md1

Delete the array:
mdadm --remove /dev/md1

Zero the superblocks:
mdadm --zero-superblock /dev/sdc2
mdadm --zero-superblock /dev/sdb2

Return the paritions to be usable as swap:
mkswap /dev/sdb2
mkswap /dev/sdc2

echo "#New RAID SCAN" >> /etc/mdadm/mdadm.conf
mdadm --examine --scan >> /etc/mdadm/mdadm.conf

Edit with a text editor, and place the new scanned arrays under:the section:
# definitions of existing MD arrays

Remove the previous config.

/etc/mdadm/mdadm.conf

Save the conf file.

fdisk /dev/sdb

Toggle the partition to 83 if it is fd. This will prevent the kernel from auto starting the array on the next bootup.

Do the same for the other disk.