0:06 Welcome to this Application Explainer video, part of our Data Adapters topic range.
0:10 In this video, we’ll cover the subject of Delete Adapters within SLM.
0:14 A delete adapter refers to a component or module responsible for managing deletion of data within the application.
0:21 It often encapsulates the necessary logic and operations required to safely and efficiently delete the targeted data whilst ensuring data integrity.
0:30 To utilise the Delete adapter for removing objects, only three data elements are required for the deletion of each object, type ID, object ID and the scope.
0:45 To efficiently delete multiple objects, we utilise the Delete adapter which is located within the Adapters module.
0:53 These adapters operate with an Excel input file structure as follows.
1:01 Type ID of the object, object ID of the object and scope.
1:07 The scope refers to the site’s object ID where the object is situated.
1:16 Let’s go ahead and build the Excel file with the information of the two objects from two different scopes.
1:34 In order to find the information for the type ID, object ID, and the scope for each object, we can click the light bulb icon in the Views toolbar.
1:47 In there, we’re going to find the object ID of the object, the scope and type ID of the object, and some other metadata and integration information.
1:56 For this scenario, we just need these three elements, so I’ll go ahead and copy and paste these into the Excel file.
2:15 We’ll also delete some equipment data which is located in a different scope, so again, I’ll copy and paste the required information into the Excel file.
2:40 Once we’ve built the Excel file, we can proceed to the Delete Adapters feature in the Adapters module.
2:50 Since we’re deleting 2 objects from two different scopes, when we come to the channel, we’ll select the master channel.
2:56 The other channels are designated for processing data related to those specific scopes.
3:01 Since in this scenario we’re deleting data from two different scopes, we’re going to use a master channel.
3:09 We then press Select Files button and attach our Excel file and queue the task.
3:23 We can check for the status of the task under Adapter Tasks and Delete Adapter tasks.
3:39 After the process is completed, we can verify that both objects have been deleted, the alarm under the first scope and the equipment under the second scope.