What is the condition being checked for deleting the excess archive files ?
Is it like
(maxFileSize + size of all archive files) > totalSizeCap ?