Diesel fuel is not an allowable material for cleanup as it can harm rubber parts. However it has its place, e.g. its used to sometimes soften gelled up oils.
But good cleanup of such is a 2 stage process, first stage is to use a thin oil like used atf mixed with kerosene and paint it on the heavily greasy parts, then wipe it clean, then a detergent is used to wash the oily coat away so dirt doesnt stick to it.
However its not advised to rub rubber parts or plastic wiring looms with such oils as they are harmful to them in the long run.