Function: Removes a ramdrive from the Wheels OS system.
Called By: Nothing?
Pass: r4L = drive # the program wants to remove.
Uses: r4L, driveType, numDrives, SetDevice, PurgeTurbo, curDrive, ramBase, curType, curDevice.
Return: Nothing.
Destroyed: .A & .Y
Synopsis: First, it checks numDrives to ensure that there are at least two drives running. No sense in deleting the only drive in a system! Using the drive number passed in r4L, it calls SetDevice & PurgeTurbo. Next, it zeroes out the corresponding driveType entry and the ramBase entry in these two tables. It then zeroes out curType, curDrive, curDevice and finally decreases the value found in numDrives by one.
This has the effect of removing a ramdrive from the Wheels OS system. It does not actually remove the ramdisk in a physical sense! It is just that some pointers indicating the existence of a ramdrive is simply wiped out.
See Also: Interestingly enough, there is no corresponding AddDrive entry. Maybe this routine is contained in the Toolbox instead and is not in the Group 0 section of the Wheels OS Kernal.