add clear api, to clear data on specific device