How to create a jenkins job that will clean the mem cache in a docker environment?

Anyone Please provide your input.