Maybe throw an error message + exit 1 in the other cases? The user will not know why the type did not delete it else.