I need to delete a value from the registry. I know something is wrong with my first line because the value is not a key. The second line works fine. Thanks

if existkey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" , "RealTRay"
DelValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" , "RealTray")
endif