Can't delete a xiami motion sensor

Im trying to delete that motion sensor in the app , it disapear , after trying to add the sensor for one hours , i did check in the ide and it was still there .

So i have delete from the ide , but the sensor never get deleted. Ive got a massage that the sensor was deleted .
Someone know how to delete that sensor?
Thank you