How to remove a job in Nomad?

Is it possible to do the equivalent of tf destroy in Nomad?

I get the distinct impression that Nomad’s philosophy is to strictly persist all deployments, and/or that old jobs are garbage collected

I can’t seem to find docs on this particular topic

if I missed them, I apologize

Hi @salvor,

nomad job stop -purge <job>

should do the trick.


You can also use the nomad system gc command to trigger the garbage collector. This will remove all jobs, allocs and nodes that are not active anymore.