Added delete() in Terminal API. Fixed new.php offset error.