Gradle

How can I Delete a java file inside a jar folder by Gradle script with out using task?

i tried like this delete ‘the path of the file where it is getting stored’ but it didn’t get deleted. can any one help please

I’m not sure what you mean by ‘without using task’…

Why don’t you want to use a task? How are you hoping it will work if you don’t use a task?