How do you clear application data remotely for Android?

Is there a way to use a script to clear the data and the cache on an Android? Our devices are locked down and the Settings option is not available. Also, we do not want to confuse the users with clearing data and cache. If we have a script we can push the script to the device.