> For the complete documentation index, see [llms.txt](https://docs.fylr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fylr.io/for-users/asset-records-management/deleting-records.md).

# Deleting Records

This article describes the workflow of how records can be deleted.

{% hint style="info" %}
Deleting records in fylr requires that the user has the necessary permissions. If you do not have the appropriate permissions, you will not be able to delete records. Please contact your system administrator if you need access.
{% endhint %}

{% hint style="info" %}
Deleted records are moved to the trash and can be restored with the required permissions. Purging records from the trash permanently removes them.
{% endhint %}

## **Deleting a Single Record**

Use the search functionality to locate the record you wish to delete. You can use various filters and search terms to find the specific record.

Once you have located the desired record in the search results, click on the record and enter the edit mode.

In the editor, open the 3-dot-menu in the upper right and click "Delete". Confirm the deletion when prompted. The record will be moved to the trash.

## **Deleting Multiple Records**

Use the search functionality to locate the records you wish to delete. You can refine your search to include all the records you want to remove.

In the search results, select the records you wish to delete. This can be done by using the lasso to select multiple records, by holding CTRL/COMMAND and clicking on the records or by using the "Select Page" / "Select All" options in the 3-dot-menu of the search.

Once you have selected the desired records, right-click on the selected records and click on "Delete Records" or enter the group mode by choosing "Group Editor". This mode allows you to perform actions on multiple records simultaneously. In the group editor, you find the "Delete" button in the lower right. Please note that users additionally need the system right "Batch Delete" to see these buttons.

Confirm the deletion when prompted. All selected records will be moved to the trash.

{% hint style="danger" %}
Use caution when deleting multiple records at once to avoid accidental loss of important data.
{% endhint %}

## Deleting Referenced Records

If you delete a record that is referenced by another record (for example a keyword that is linked in an image record), you will receive a message and have to decide what you want to do.

You can delete the record and let fylr remove all references in the other records automatically. A reference in a field that allows empty values is cleared. A reference in a nested table row whose field is set to NOT NULL takes the whole row with it: with "Delete" (policy `remove`, the option "Delete N and unlink M" in the dialog) always, including the other fields of the row; with "Unlink" (policy `setnull`, the default of a background `delete_objects` task, see [background tasks](/for-users/additional-features/background-tasks.md#delete_objects)) only when the reference is the row's only field.

A reference that cannot be removed disables the option and the record cannot be deleted:

* a NOT NULL reference in a top-level field,
* a NOT NULL reference in a nested table row with further fields, when the policy "Unlink" keeps such rows,
* any reference whose removal would leave a nested table empty that is set to NOT NULL itself.

Search for these records and link a different record or remove the rows first. When all such references are gone, you will be able to delete the record.

{% hint style="info" %}
From **fylr 6.35.0**, a NOT NULL reference in a nested table row no longer blocks the deletion: the row is removed with the record. Before, every NOT NULL reference blocked it.
{% endhint %}

{% hint style="info" %}
From **fylr 6.35.0**, confirming removal of references also removes the reciprocal link in a bidirectional relation before the record enters the trash. For example, if A and B link to each other and you delete A while removing B's reference to it, both B → A and A → B are removed. Restoring A keeps those links removed. The same behavior applies to background `delete_objects` tasks.
{% endhint %}

If you are trying to delete a record from a hierarchical object type that has subordinate records, you can also choose the option to delete the record and delete all subordinate records.

You can also abort the deletion by either clicking on the "X" in the upper right, or you can let fylr create a collection with all records that prevent the deletion. The collection can be found in the quick access. It's named "Deletion \<date & time of the creation>". The record(s) that were tried to be deleted are linked in the top level collection.

The records that prevent the deletion are linked in the following collections:

<table><thead><tr><th width="244">COLLECTION</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr></tbody></table>

## Deleting a record with bidirectional links

A record linked in both directions to other records (a bidirectional field) asks whether to **unlink** it from its partners when it is deleted. From **6.35.0** confirming removes the link on both sides before the record enters the trash, and restoring the record from the trash keeps the links removed — the partners are not silently re-linked. Deleting through a background task behaves the same way.
