---
title: "Delete all labels of a Confluence page."
canonical: "https://support.appfire.com/space/SUPPORT/327025391/Delete%20all%20labels%20of%20a%20Confluence%20page."
format: markdown
---
> ℹ️ You need to install the **[Power Scripts for Confluence](https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?tab=overview&hosting=datacenter)** app in your Confluence Server/DataCenter instance to implement the below.

The below SIL script will delete all labels from a page in a Confluence Server/DataCenter instance: 

```groovy
//get page
number page = getPage("TST", "This is a demo page"); 

//set the labels to empty string -> which deletes all labels of the page
%page%.labels = ""; 
```

Replace

- `TST` with the key of Space where the desired page exists.
- `This is a demo page` with the title of the desired page whose labels you want to delete.


> ⚠️ Note: If you have utilized these labels in any macro that involves labels (for example, the [Content by Label](https://confluence.atlassian.com/doc/content-by-label-macro-145566.html) macro), deleting those labels may cause the above page to be excluded from the macro-generated results.


Here’s an example showing the above script in action:

![image](media://098ca086-56a2-4e29-9df1-85de7a37c5ab)


## Reference:

- [getPage](https://appfire.atlassian.net/wiki/spaces/PSCONF/pages/15304589)

## See Other Recipes:

> Macro (contentbylabel)

## See More Documentation:

> Macro (contentbylabel)