Has to be completely empty. Don’t recall if F to loot all works or if you have highlight the remaining oil by scrolling the mouse wheel then hit Q.

Assuming you’re on PC.