How to disable workspace sharing between some steps in drone ( docker runner )

I have a pipeline that is running with docker runner ( on drone ).
On of my steps modify the structure of the code ( delete and add some files )
I would like to have the code as it was basically pulled from the beginning.
How Can we do that.

I think there are a couple of options here.

  1. run the steps that require un-altered repo code first. check out ‘depends_on’ here: Parallelism | Drone

  2. disable automatic cloning and implement custom repo logic: Cloning | Drone