![]() |
If a block is no longer needed, the application should remove it from the NVM.
1. Register the application, as described in the Storage: Register Application, Perform Task, Unregister Application flow. You should have the session handle and application handle available.
2. Retrieve the block handle for the block of interest, as described in the Storage: Get the Block Handles for an Application flow.
3. Invoke AMT_ThirdPartyDataStorageService.DeallocateBlock with the following input parameters:
Parameter | Description/Value |
SessionHandle | The session handle. |
BlockHandle | The handle of the block to be removed. |
Click here for a snippet demonstrating this step
You can execute this snippet by inserting it into the execution template found here.
$thirdPartyDataStorageServiceRef =$wsmanConnectionObject.NewReference("SELECT * FROM AMT_ThirdPartyDataStorageService WHERE Name='Intel(r) AMT Third Party Data Storage Service'")
$inputObject =$thirdPartyDataStorageServiceRef.CreateMethodInput("DeallocateBlock")
# $sessionHandle is the session handle returned by 'RegisterApplication' method.
$inputObject.SetProperty("SessionHandle",$sessionHandle.ToString())
# $blockHandles contains one or more block handles returned by 'GetAllocatedBlocks' method.
$inputObject.SetProperty("BlockHandle",$blockHandles.Item(0).ToString())
$outputObject =$thirdPartyDataStorageServiceRef.InvokeMethod($inputObject)
$returnValue =$outputObject.GetProperty("ReturnValue")
4. Unregister the application when done. See Storage: Register Application, Perform Task, Unregister Application.
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 |
Copyright © 2006-2022, Intel Corporation. All rights reserved. |