You can use hdc shell bm clean -d -n bundleName to clear data.
You can use hdc shell bm clean -c -n bundleName to clear the cache.