Deleting Leave Records
Remove leave records when they were created in error, are no longer needed, or the teacher's plans have changed.
Method 1: From Leave History
Step 1: Open Leave History
- Click "Reports" in the left sidebar
- Click the "Leave History" button to open the leave records page
Step 2: Find the Record
- Use the User dropdown to filter by a specific teacher
- Click "Filters" to narrow by date range, leave type, duration type, or status
- Click column headers to sort by date, user, leave type, duration, or status
Step 3: Delete
- Click the trash icon on the record row
- A confirmation modal appears showing the leave details
Step 4: Review and Confirm
The confirmation modal displays:
- User name - The teacher whose leave will be deleted
- Date - The leave date
- Leave Type - Shown as a color-coded badge (e.g., Sick Leave, Casual Leave)
- Duration - Full Day, First Half, Second Half, or number of days
Click "Delete" to confirm, or "Cancel" to keep the record.
Method 2: From the Calendar (Leave Marking Modal)
You can also delete leaves directly while viewing a teacher's leave in the calendar:
- Open the Calendar from the sidebar
- In the Faculty view, hover over a teacher's name and click "Leave"
- If the teacher already has leaves on the selected date, they appear in an "Existing Leave Records" section
- Each existing leave shows the date, leave type badge, duration, and status
- Click the trash icon on any existing leave record
- Confirm the deletion in the browser dialog
What Happens After Deletion
When a leave is deleted:
- The leave record is permanently removed from the system
- The calendar no longer shows the teacher as on leave for that date
- Leave History and Reports are updated automatically
- Substitute assignments are not automatically removed - if substitutes were assigned for that day, they remain active and must be removed separately if needed
Cannot Be Undone: Deletion is permanent. Verify the date, teacher name, and leave type before confirming. If you need the leave again, you'll need to mark it fresh from the Calendar.
When to Delete
Delete leave records when:
- Wrong date was entered
- Wrong teacher was selected
- The teacher's leave has been cancelled
- A duplicate entry was created
- The leave type was incorrect (delete and re-create with the correct type)
Quick Reference
| Step | Action |
|---|---|
| 1 | Open Leave History (Reports → Leave History) |
| 2 | Find the record using filters and sorting |
| 3 | Click the trash icon on the record |
| 4 | Review details in confirmation modal |
| 5 | Click "Delete" to confirm |
Troubleshooting
Can't find the leave record?
- Check the date range filter - the default shows the last 30 days
- Use the User dropdown to search by teacher name
- Try resetting all filters with the "Reset Filters" button
Deleted the wrong record?
- Deletion cannot be undone
- Mark a new leave with the correct details from the Calendar (hover over teacher → click "Leave")
Substitute assignments still showing after deleting the leave?
- Substitute assignments are independent of leave records
- Remove them separately from the Calendar by clicking on the teacher's row and using the cancel action on individual substitute periods
Tip: If you're unsure about deleting, click "Cancel" in the confirmation modal. You can always delete later.