usually creating RAM disks works with the following commands
hdid -nomount ram://
Returns e.g. /dev/disk2 Then I would format
Also, info to delete/destroy the RAM disk needs to be corrected. ramdisk will be created at path /Volumes/'ramdisk', so the command is:
diskutil eject /Volumes/'ramdisk'