---
title: "deletePageTree"
canonical: "https://support.appfire.com/space/PSCONF/15304373/deletePageTree"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | deletePageTree(pageId); | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Deletes the selected page and all its child pages.

Deletes the selected page and all its child pages.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | page ID | Number | Yes | ID of the page to be deleted, the whole tree where this page is a parent will be deleted as well. |

## Return Type

**Boolean (true/false)**

Returns true if the operation was successful.

## Example

```javascript
boolean success = deletePageTree(11801);
print("Return " + success);
```

## See also

> Macro (contentbylabel)