Skip to Content
Leavely

Archive and delete

What Archive, Unarchive and Delete do to the settings records of your company, and when each action is available.

Archive closes a record to new use and keeps it for the history of your company. Delete removes a record that nothing uses.

How it works

These records in Settings have Archive: Leave Types, Allowance Types, Allowance Policies, Departments, Holiday Locations and Leave Calendars. The steps are on the page of each record. This page gives the rules that they have in common, and the rules that are different for each record.

An employee record is also archived, when the person leaves the company. You cannot unarchive it. See When an employee leaves the company.

Archive

When you archive a record, nobody can select it for new use. For example, nobody can select an archived Leave Type in a new request, and you cannot select an archived Department for an employee. Archiving changes no Leave Request and no Leave Balance. The Leave Requests and Leave Balances that use the record keep it.

An archived record moves to Archived, below the table or the list of its page. An archived Leave Calendar stays in the table with the status Archived. You cannot edit an archived record. Unarchive it first.

An archived employee record stays in the table of Settings > Employees, with the status Archived. Nobody can edit it.

In these lists, an archived record shows "— archived" after its name (for a Leave Calendar, after its dates):

  • In Reports (Pro and Business plans), the Report Period list, the Allowance Type list of Balances, and Leave by department. See Reports.
  • On the Wall Chart, the Department filter. See Wall Chart.

Other places show the name of an archived record with no marker, such as the name of an archived Leave Type in Reports.

When Archive is not available

You cannot archive some records while your current setup still needs them. For example, you cannot archive the Company Default Leave Type. For a Leave Type, an Allowance Type or an Allowance Policy, Archive then shows dimmed in the row menu. Point to it to see what blocks it, such as "Move its 2 employees to another policy first." Do that step, then archive the record.

For a Leave Calendar, the archive icon shows only when you can archive it. See When you can archive.

Nothing blocks the archive of a Department or a Holiday Location. When you archive one, Leavely removes it from its current employees in the same step. Before you confirm, the dialog shows how many employees have it. Former employees keep it in their record.

The Department Manager of an archived Department cannot approve leave through it. Until its earlier members get a new Department, only the Owner and the Admins can approve their leave. See A Department is archived.

When you archive an Allowance Type, employees no longer see its Leave Balances, and its unused days do not carry over into a new Leave Calendar. When you unarchive it, employees see its Leave Balances again. The days that did not carry over while it was archived do not move. See Archive an Allowance Type.

Unarchive

Unarchive makes the record available for new use again. It does not undo what Archive changed. When you unarchive a Department or a Holiday Location, the employees who lost it stay without it. To give it back to them, select it for each of them in Settings > Employees.

You cannot unarchive a Leave Type or an Allowance Policy while its Allowance Type is archived. Unarchive the Allowance Type first.

Delete

Delete removes a record. You cannot undo it. The row menu shows Delete only while nothing refers to the record. A former employee counts, and so does a Leave Request of any status. The row menu of an archived record can also show Delete. A Leave Calendar has no row menu. Its trash icon (Discard) does the same, and it also depends on the status of the Leave Calendar.

When something refers to a record, you can only archive it. A past Leave Request keeps its Leave Type and its Department, and a former employee keeps their Department, Holiday Location and Allowance Policy. Archive keeps this history.

The name of an archived record stays in use

An archived Leave Type, Allowance Type or Department keeps its name. No other record of the same kind can have that name. The check ignores upper and lower case. Leavely shows a message such as "An archived department already uses this name. Unarchive it instead." To use the name, unarchive the record. If nothing refers to it, you can also delete it, and then use its name again.

A country, or one of its regions, has one Holiday Location in a company, archived Holiday Locations included. Two Allowance Policies can have the same name.

The rules for each record

RecordWhat blocks ArchiveWhen Delete showsWhat Unarchive does
Leave TypeIt is the Company Default.It is not the Company Default, and no Leave Request uses it.People can select it in new requests again. Not available while its Allowance Type is archived.
Allowance TypeA Leave Type that is not archived deducts from it.No employee, current or former, is assigned to one of its policies. No Leave Type deducts from it, archived Leave Types included. No request deducted from it, and no leave or carry-over changed its Leave Balances.Leave Types can deduct from it again. Leavely also creates the missing Leave Balances of current employees in the Active Leave Calendars.
Allowance PolicyIt is the default policy, or a current employee is assigned to it.It is not the default policy, and no employee, current or former, is assigned to it.You can assign it again. Not available while its Allowance Type is archived.
DepartmentNothing. Its current members lose the Department.No employee, current or former, is in it, and no Leave Request belongs to it.You can select it for employees again. Its earlier members do not come back.
Holiday LocationNothing. Its current employees lose the Holiday Location.No employee, current or former, has it. Leavely deletes its holidays with it.You can select it for employees again. Its earlier employees do not get it back.
Leave CalendarIt is the Current Leave Calendar, or an Upcoming one that is right after it or that has a later active year.Discard shows only for an Upcoming Leave Calendar that is not right after the Current one, has no later active year and has no Leave Requests.Always available. It returns to the year list in My Year. Leavely also creates the missing Leave Balances of current employees in it.

For the steps, see Leave Types, Allowances, Departments, Holidays and Leave Calendars.

Worked example

Your company has a Support Department with three employees. One former employee was also in it, and its members have Leave Requests. The names and numbers are examples.

SituationWhat you seeWhy
You open the row menu of SupportArchive, and no DeleteEmployees and Leave Requests refer to it
You archive Support"Department archived. 3 employees have no department."Archive removes the Department from its current members
You open Leave by department in ReportsThe leave of Support, under "Support — archived"Leave Requests keep their Department
You add a Department with the name support"An archived department already uses this name. Unarchive it instead."The name of an archived record stays in use
You unarchive SupportSupport returns to the table, with no membersUnarchive does not bring the members back

What happens when

A pending request uses an archived Leave Type

An approver can still approve or reject it in the Pending view of the Leave page. When it is approved, it uses days from its Allowance Type as usual. A request in an archived Leave Calendar is different. It cannot be approved. See Leave request lifecycle.

You cannot archive an Allowance Type

A Leave Type that is not archived deducts from it. Change that Leave Type, or archive it. You cannot archive the Company Default Leave Type, so change its Deduct From Allowance. For the steps, see Archive an Allowance Type.

Leavely refuses a Delete that the menu showed

Something started to use the record after you opened the menu. For example, Leavely shows "Leave requests use this leave type. Archive it instead." when someone requested leave with the Leave Type in the meantime. Archive the record instead.

Another Owner or Admin deleted the record

Leavely shows a message such as "This department no longer exists. Refresh the page." Refresh the page to see the current records.

Last reviewed on

On this page