Espanyol coach Javier Aguirre is to leave the club after Saturday's Primera Division season finale at Real Madrid.