update clear data api