CollapseAll image

Admin: Remove an Application

If an application is not needed anymore, it should be removed so that there is room for a new one. Management application code will have to map the enterprise/vendor/application/UUID tuple to an application handle.

1.  Retrieve the instance of AMT_ThirdPartyDataStorageAdministrationService, where the “Name” key equals “Intel(r) AMT Third Party Data Storage Administration Service”.

2.  Use the Admin: Enumerate all Registered Applications flow to retrieve of a list of application handles and the corresponding associated information, associating each handle with its other information.

3.  Find the handle that corresponds to the application to be removed supplied by the user. If that name is not in the list, return an error to the user.

4.  Invoke AMT_ThirdPartyDataStorageAdministrationService.AdminRemoveApplication to remove the application. Pass it the handle of application to be removed that was found in step 4.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

$handleToDelete ="1" # The handle of the application that should be removed.

$thirdPartyDataStorageAdministrationServiceRef =$wsmanConnectionObject.NewReference("SELECT * FROM AMT_ThirdPartyDataStorageAdministrationService WHERE Name='Intel(r) AMT Third Party Data Storage Administration Service'")

$inputObject =$thirdPartyDataStorageAdministrationServiceRef.CreateMethodInput("AdminRemoveApplication")

$inputObject.SetProperty("Handle",$handleToDelete)

$outputObject =$thirdPartyDataStorageAdministrationServiceRef.InvokeMethod($inputObject)

$returnValue =$outputObject.GetProperty("ReturnValue")

 

 

Instance Diagram

Not applicable

Classes Used in This Flow

SDK Sample

If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.

 

See Also:

   Storage Concepts and Objects

   Application Development Guidelines

   Examples of Using the Storage Feature

Copyright © 2006-2022, Intel Corporation. All rights reserved.