ID:263261
 
Code:
mob
Admin
verb
Various()
set category = "Admin"
switch(alert("What would you like to do?","Control","Option1","Option2"))
if("Option1")
var/savefile/O = new("Save.sav")
var/Remove = input("Please enter the name","Name") as null|text
O["[Remove]"] >> del()
alert("[Remove] has been removed","Control")


Problem description:
The name does not get removed and i get a runtime error saying that there is a bad del() what should i put to make that del work correctly?

Removing it from the savefile's 'cd' list should do the trick.

var/savefile/F = new("savefile.sav")
F.dir -= "my_data"


In response to Nadrew
Thanks that did the trick