Same as erase in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method
in millis