# Delete Desktop Shortcut(s)

*Applies to: Patch My PC Publisher*\
*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="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FDYAKSMZNgow49SQunPUw%2Fimage.png?alt=media&#x26;token=a2903a5c-431c-4b94-81fc-be81fefe260d" 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="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FAycTfEKMDQC2OvMLowHo%2Fimage.png?alt=media&#x26;token=0b6e07f4-6b6d-43c3-a291-244b68267d09" 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="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FuTHk4JEQEU0CjzmWlasq%2Fimage.png?alt=media&#x26;token=d9a08ea1-d4f7-4674-9d32-74353e41966b" 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
