Handles removing the newer versions if the asOfDateTime param is set