I used to run ncverilog simulation with +nclibdirname+ABC option. ABC is compilied library for simulation, but it is very large. Every time I have to delete it manually. Is there any way to delete it automatically by ncsim? It seems ncsim has option -clean, but it seems only valid for INCA_libs.
Don't know if it'll serve ur purpose (if I have understood it correctly)....
Create a bash shell. There do the compilation, simulation, whatever you want in there as initial steps. Before exiting, just provide the command to delete whatever you want.