<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ParavirtualizedGraphics",
  "identifier" : "/documentation/ParavirtualizedGraphics/PGDestroyTask",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Paravirtualized Graphics"
    ],
    "preciseIdentifier" : "c:@T@PGDestroyTask"
  },
  "title" : "PGDestroyTask"
}
-->

# PGDestroyTask

The block signature for a routine that destroys a task.

```
typedef void (^)(struct PGTask_s *) PGDestroyTask;
```

## Parameters

`task`

The task to destroy.

## Discussion

The block must clean up any virtual memory that the device object allocated when it created the task.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)