Yes, shutdown the OH service then you can delete the cache and the tmp folder content.
see e.g.: Clear the Cache