Add delete function to text interface