Absences and Attendances are created based on Personnel Sub-Area Groupings, so you should first identify for what PSA Grouping the Absence code should no longer be available.
Then, for that PSA Grouping, delimit the Absence code as mentioned by Vivek.