Dev remove external ids when deactivating