> For the complete documentation index, see [llms.txt](https://docs.patchmypc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patchmypc.com/patch-my-pc-publisher/customizations-right-click-options/delete-desktop-shortcut-s.md).

# Delete Desktop Shortcut(s)

*Applies to: Patch My PC Publisher V2.x*\
*Available at level: All Products, Vendor, Product*\
*Available on tab: Updates, ConfigMgr Apps, Intune Apps, Intune Updates*

The **Delete desktop shortcut(s)** option automatically removes public desktop shortcuts created by an application installer. This applies only to shortcuts that are defined in the Patch My PC catalog for the product.

<figure><img src="/files/qqwFBWw5YzhP5lKSiOft" alt="Delete Desktop Shortcuts(s)" width="563"><figcaption></figcaption></figure>

When enabled, Patch My PC ScriptRunner checks the public desktop location on the client device and deletes any shortcuts created by the installer that match the Patch My PC catalog definition.&#x20;

When enabled at the **Product** level, the setting applies only to that specific application. No confirmation dialog is displayed.

When enabled at the **Vendor** level, such as Oracle, the setting applies to all supported products for that vendor.

<figure><img src="/files/92G4APnGdEGBloEXVb9Y" alt="Delete Desktop Shortcut(s) set at the Vendor level" width="375"><figcaption></figcaption></figure>

When enabled at the **All Products** level, the setting applies to all products that support desktop shortcut deletion.

<figure><img src="/files/DcvZsdo9dw58ntpcyrqE" alt="Delete Desktop Shortcut(s) set at the All Products level" width="414"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

Some applications create a desktop shortcut for the user the next time they sign in after an application or update is installed. In these cases, Patch My PC ScriptRunner, which managed the installation, cannot remove the shortcut retrospectively, as it is created outside of the installation process.

If required, these shortcuts must be removed using a separate automation or cleanup mechanism.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.patchmypc.com/patch-my-pc-publisher/customizations-right-click-options/delete-desktop-shortcut-s.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
