terminal api call renaming
implemented terminal delete and pid api calls