Stop enqueued job

I’ve been looking around and while I’m sure its been solved, but I haven’t been able to put the pieces together.

Is there a simple way of stopping a job from enqueueing when there is one already enqueued? Or even running maybe?