You cannot delete an absence type if it has been assigned to any absence record historically.
If you need to delete the absence type, you will first need to remove all references to it.
Identify the referenced data
To identify all records where the absence type has been used, follow the steps below to run a data export.
In the Admin Tool, click Import/Export Data.
Click Create an export definition.
Click Select the data to export.
Change the database to SelectHR.
Log in.
Copy the below SQL;
SELECT Absence.[History Data].[Absence Type],
Absence.[History Data].[Absence Number],
Absence.[History Data].[Absence Start Date],
Absence.[History Data].[Absence End Date],
Absence.[History Data].Workflow,
Person.Details.[Formal Name]
FROM Absence.[History Data]
INNER JOIN Person.Details ON Person.Details.[Person Number] = Absence.[History Data].[Person Number]
WHERE Absence.[History Data].[Absence Type] = 'CHANGEME'
π€ Tip: Alter the CHANGEME value in the absence type criteria to the absence type you wish to delete.
Any results returned are linked points of data which will need to have the reference removed. You will need to use the absence history process to alter the absence type against each record individually, or perform a data import to update the data in bulk.