# TEST: SECURITY-DM-04

## References

* [Device Management](https://help.santesuite.org/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/device-management-tests/broken-reference)

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when deleting an existing device.

## **Pre-Conditions / Setup**

1. User must be logged into an account with policies granted for deleting devices.
2. Navigate to **Administration Panel / Security / Devices / Devices**.

## Actions/Steps

1- Click the **Delete** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJLohfxr52HiCxKSOQ%2F-MdJMy9X30P3Q83LPQKt%2F11.jpg?alt=media\&token=82546fb7-5d0b-477c-b47e-a378f4cc16a6)

2- Click  **Ok** to confirm the delete.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJLohfxr52HiCxKSOQ%2F-MdJNtLZn5O_D2YJJueT%2F12-1.jpg?alt=media\&token=1c188f0f-b254-4534-9c67-4da4b6bd1cc3)

## Expected Behaviour

1- Should display a message asking to confirm the delete.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJLohfxr52HiCxKSOQ%2F-MdJNZkvGQumnD1AJK2A%2F12.jpg?alt=media\&token=49cf84d6-def3-4f50-9872-a30c11ffab40)

2- Deleted device (Create-Device -Test1) Should disappear from the Devices/Devices page.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJLohfxr52HiCxKSOQ%2F-MdJOfm1i0Zi4JsU1lLk%2F13.jpg?alt=media\&token=f8144a35-b312-4461-898d-5a93d1d6a0c7)
