If it will be class member funciton we can write
diff = remote_cd.remove(local_cd)