Add delete-tern-process function