# 7.10. Approve delete equipment request

[![Approve delete equipment request.png](https://doc.rncv.lu/uploads/images/gallery/2025-10/scaled-1680-/approve-delete-equipment-request.png)](https://doc.rncv.lu/uploads/images/gallery/2025-10/approve-delete-equipment-request.png)

<table class="simple-table" id="bkmrk-name-approve-delete-" style="width: 99.404762%; height: 297px;"><thead class="simple-table-header"><tr id="bkmrk-name-approve-delete--1" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-name" style="width: 19.892473%; height: 29px;">Name</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-approve-delete-equip" style="width: 80.107527%; height: 29px;">Approve delete equipment request</th></tr></thead><tbody><tr id="bkmrk-purpose-allow-approv" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-purpose" style="width: 19.892473%; height: 29px;">**Purpose**</th><td class="align-left" id="bkmrk-allow-approver-to-va" style="width: 80.107527%; height: 29px;">Allow Approver to validate an equipment delete request</td></tr><tr id="bkmrk-linked-user-stories-" style="height: 57px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-linked-user-stories" style="width: 19.892473%; height: 57px;">**Linked user stories**</th><td class="align-left" id="bkmrk-4.42.-editor---delet" style="width: 80.107527%; height: 57px;">[4.42. Editor - Delete an equipment](https://doc.rncv.lu/books/architecture-documentation/page/442-editor-delete-an-equipment "4.42. Editor - Delete an equipment")

[4.50. Approver - Approve deleted equipment request](https://doc.rncv.lu/books/architecture-documentation/page/450-approver-approve-deleted-equipment-request "4.50. Approver - Approve deleted equipment request")

[4.55. Organisation Approver - Approve delete equipment request for organisation](https://doc.rncv.lu/books/architecture-documentation/page/455-organisation-approver-approve-delete-equipment-request-for-organisation "4.55. Organisation Approver - Approve delete equipment request for organisation")

</td></tr><tr id="bkmrk-apis-used-put-%2Fequip" style="height: 61px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-apis-used" style="width: 19.892473%; height: 61px;">**APIs used**</th><td class="align-left" id="bkmrk-put-%2Fequipments%2F%3Cequ" style="width: 80.107527%; height: 61px;">**PUT** /equipments/&lt;equipment-id&gt;/approve  
**PUT** /equipments/&lt;equipment-id&gt;/reject  
**PUT** or **PATCH** /equipments/&lt;equipment-id&gt;</td></tr><tr id="bkmrk-scope-this-process-o" style="height: 18px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-scope" style="width: 19.892473%; height: 18px;">**Scope**</th><td class="align-left" id="bkmrk-this-process-only-ha" style="width: 80.107527%; height: 18px;">This process only handles the validation of an already created equipment deletion request</td></tr><tr id="bkmrk-roles-system%2C-approv" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-roles" style="width: 19.892473%; height: 29px;">**Roles**</th><td class="align-left" id="bkmrk-system%2C-approver-%2F-g" style="width: 80.107527%; height: 29px;">System, Approver / Global Approver</td></tr><tr id="bkmrk-input---id-of-the-un" style="height: 45px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-input" style="width: 19.892473%; height: 45px;">**Input**</th><td class="align-left" id="bkmrk---id-of-the-unit-tha" style="width: 80.107527%; height: 45px;">- id of the unit that is marked for deletion  
- optionally the information to amend</td></tr><tr id="bkmrk-output---confirmatio" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-output" style="width: 19.892473%; height: 29px;">**Output**</th><td class="align-left" id="bkmrk---confirmation-that-" style="width: 80.107527%; height: 29px;">- confirmation that the update request has been approved/rejected</td></tr></tbody></table>

## Detailed Process description

### Main Process

<table class="simple-table" id="bkmrk-step-description-act" style="width: 100%;"><thead class="simple-table-header"><tr id="bkmrk-step-description-act-1"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-step" style="width: 6.197855%;">Step</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-description" style="width: 21.334923%;">Description</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-actor%28s%29" style="width: 9.177592%;">Actor(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-input%28s%29" style="width: 16.328963%;">Input(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-output%28s%29" style="width: 17.520574%;">Output(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-decision-points" style="width: 29.440093%;">Decision points</th></tr></thead><tbody><tr id="bkmrk-1-the-system-sends-o"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-1" style="width: 6.197855%;">**1**</th><td class="align-left" id="bkmrk-the-system-sends-out" style="width: 21.334923%;">The System sends out notifications to the Global approvers and organisation approvers, indicating that an approval a pending.</td><td class="align-left" id="bkmrk-system" style="width: 9.177592%;">System</td><td class="align-left" id="bkmrk---outside-trigger-%28e" style="width: 16.328963%;">- Outside trigger (e.g. Editor sent a delete request)</td><td class="align-left" id="bkmrk---notification-to-th" style="width: 17.520574%;">- notification to the Global and organisation Approvers</td><td class="align-left" id="bkmrk--1" style="width: 29.440093%;"></td></tr><tr id="bkmrk-2-the-approver-verif"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-2" style="width: 6.197855%;">**2**</th><td class="align-left" id="bkmrk-the-approver-verifie" style="width: 21.334923%;">The Approver verifies if the equipment can be deleted</td><td class="align-left" id="bkmrk-approver" style="width: 9.177592%;">Approver</td><td class="align-left" id="bkmrk---equipment-deletion" style="width: 16.328963%;">- equipment deletion request</td><td class="align-left" id="bkmrk---yes-%2F-no" style="width: 17.520574%;">- yes / no</td><td class="align-left" id="bkmrk-if-the-equipment-can" style="width: 29.440093%;">**If the equipment can be deleted:** Go to step 3  
**Else:** Go to secondary process S.1</td></tr><tr id="bkmrk-3-the-system-marks-t"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-3" style="width: 6.197855%;">**3**</th><td class="align-left" id="bkmrk-the-system-marks-the" style="width: 21.334923%;">The System marks the equipment with the flag “is\_deleted = true” and adds the information on the date of validation and the user that validated the request</td><td class="align-left" id="bkmrk-system-1" style="width: 9.177592%;">System</td><td class="align-left" id="bkmrk---equipment-with-fla" style="width: 16.328963%;">- equipment with flag “marked\_for\_deletion = true”</td><td class="align-left" id="bkmrk---equipment-with-fla-1" style="width: 17.520574%;">- equipment with flag “is\_deleted = true”  
- approver set to the user that triggered the approval  
- approval date set to the current date</td><td class="align-left" id="bkmrk--2" style="width: 29.440093%;"></td></tr><tr id="bkmrk-4-the-system-creates"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-4" style="width: 6.197855%;">**4**</th><td class="align-left" id="bkmrk-the-system-creates-v" style="width: 21.334923%;">The System creates validated update requests with the flag “is\_deleted = true” for each active physical link that are linked to the deleted equipments</td><td class="align-left" id="bkmrk-system-2" style="width: 9.177592%;">System</td><td class="align-left" id="bkmrk---unit" style="width: 16.328963%;">- unit</td><td class="align-left" id="bkmrk---new-validated-phys" style="width: 17.520574%;">- new validated physical links with the flag “is\_deleted = true” for each active physical link that is linked to the deleted equipments</td><td class="align-left" id="bkmrk--3" style="width: 29.440093%;"></td></tr><tr id="bkmrk-5-the-approver-gets-"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-5" style="width: 6.197855%;">**5**</th><td class="align-left" id="bkmrk-the-approver-gets-a-" style="width: 21.334923%;">The Approver gets a confirmation that the approval has been applied</td><td class="align-left" id="bkmrk-approver-1" style="width: 9.177592%;">Approver</td><td class="align-left" id="bkmrk---confirmation-of-th" style="width: 16.328963%;">- confirmation of the validation</td><td class="align-left" id="bkmrk--4" style="width: 17.520574%;"></td><td class="align-left" style="width: 29.440093%;">  
</td></tr></tbody></table>

### Secondary Processes

#### S.1. Delete equipment request rejected

<table class="simple-table" id="bkmrk-step-description-act-2" style="width: 100%;"><thead class="simple-table-header"><tr id="bkmrk-step-description-act-3"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-step-1" style="width: 5.959476%;">Step</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-description-1" style="width: 21.573302%;">Description</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-actor%28s%29-1" style="width: 9.177592%;">Actor(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-input%28s%29-1" style="width: 16.209774%;">Input(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-output%28s%29-1" style="width: 17.665021%;">Output(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-decision-points-1" style="width: 29.414836%;">Decision points</th></tr></thead><tbody><tr id="bkmrk-1-the-system-removes"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-1-1" style="width: 5.959476%;">**1**</th><td class="align-left" id="bkmrk-the-system-removes-t" style="width: 21.573302%;">The System removes the mark\_for\_deletion tag from the equipment entry</td><td class="align-left" id="bkmrk-system-3" style="width: 9.177592%;">System</td><td class="align-left" id="bkmrk---equipment-marked-f" style="width: 16.209774%;">- equipment marked for deletion</td><td class="align-left" id="bkmrk---equipment-with-the" style="width: 17.665021%;">- equipment with the flag “mark\_for\_deletion = false”</td><td class="align-left" id="bkmrk--5" style="width: 29.414836%;"></td></tr><tr id="bkmrk-2-the-approver-gets-"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-2-1" style="width: 5.959476%;">**2**</th><td class="align-left" id="bkmrk-the-approver-gets-a--1" style="width: 21.573302%;">The Approver gets a confirmation that the deletion rejection has been applied</td><td class="align-left" id="bkmrk-approver-2" style="width: 9.177592%;">Approver</td><td class="align-left" id="bkmrk---deletion-request-r" style="width: 16.209774%;">- deletion request rejection confirmation</td><td class="align-left" id="bkmrk--6" style="width: 17.665021%;"></td><td class="align-left" style="width: 29.414836%;">  
</td></tr></tbody></table>

### Exceptions

#### \[400 Bad Request\] Invalid input:

If mandatory fields are missing or invalid, the system returns an error message.

#### \[404 Not Found\] Equipment not found

Error returned by the system if the given equipment does not exist.

#### \[500 Internal Server Error\] System Error

If the system fails to save changes due to an internal error, it displays an appropriate message and logs the error for further investigation.