You can sell any car in Dubai in the 30-day grace period after your visa expires/is cancelled. Within this period, you can present your passport as valid ID at the RTA.