How to delete application data ( filesystem )

I have just moved to Capacitor from Cordova. I use vite and internal web server for testing as it is created during project initiation. Is there a way, how to make “clean application installation”? The issue is, the application creates some data files in Directory.Data. And I sometimes I need to start from scratch, so I need to delete all files created during previous runs.