Bulk Deleting Contracts
The system allows you to delete multiple contracts at once directly from the Contracts list, saving time when you need to remove several incorrectly added contracts.
Before You Begin
Make sure you have one of the following permissions in your assigned role:
- Edit/Delete His Own Contracts: Allows deleting contracts you created or that belong to you only.
- Edit/Delete All Contracts: Allows deleting any contract in the system.
Steps to Bulk Delete Contracts
- From the main menu, click on “Payroll”.
- Click on “Contracts”.
- Select the contracts you want to delete using the checkboxes next to each row.
- From the “Actions” menu at the top of the list, click “Delete Contracts”.
- A confirmation dialog will appear with the following message:
“Are you sure you want to delete the selected contracts? This action cannot be undone.” - Click “Confirm” to proceed with the deletion, or click “Cancel” to abort.
What Happens After Confirmation
The system processes each selected contract independently:
- Contracts with no blocking dependencies: Deleted immediately and removed from the list.
- Contracts that cannot be deleted: Skipped, with an error message shown per contract.
Operation outcomes:
- If all selected contracts were deleted successfully: A success message appears:
“Contracts deleted successfully.” - If some were deleted and some were skipped: A summary banner appears:
“[X] contract(s) deleted successfully. [Y] contract(s) could not be deleted.” - If none of the selected contracts could be deleted: No records are removed and an error state is shown.
Blocking Conditions
A contract cannot be deleted in the following cases:
- The contract is linked to one or more pay runs:
“This contract cannot be deleted because it is linked to one or more pay runs.” - The contract is linked to one or more unpaid payslips:
“This contract cannot be deleted because it is linked to one or more unpaid payslips.” - The contract belongs to a branch outside your accessible branches:
“You do not have permission to delete this contract.”
Notes
- Contract deletion is permanent and cannot be undone.
- If a deleted contract is part of a renewal chain, the renewal reference links on the remaining contracts are automatically cleared.
- Applied filters and sorting are preserved after the deletion is complete and the list refreshes in place.