> For the complete documentation index, see [llms.txt](https://ping-me.gitbook.io/pingme-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ping-me.gitbook.io/pingme-document/common-errors-and-how-to-fix/remove-facebook-chat-and-leftover-code.md).

# Remove Facebook chat & leftover code

{% hint style="danger" %} <mark style="color:red;">**PingMe note:**</mark> This only happens if user install before 2022.

If you are using theme 2.0, once you delete the app PingMe, the code in your theme will be automatically removed.
{% endhint %}

If you want to remove or cancel the app subscription, please go to the **Apps** tab on your Shopify dashboard and click to Delete button of the Facebook Messenger - Live Chat.

![](/files/8SK7laOsRfMk5JuCEQjw)

When you have uninstalled our app, sometimes there will have some lines of code leftover on your site. But don't worry, you just need to follow a few steps to check if there is code leftover or not.

{% hint style="success" %} <mark style="color:green;">**Step 1:**</mark> Go to the website and right-click **->** View Source **->** Ctrl+F to search for <mark style="color:blue;">`omg-facebook-chat`</mark>
{% endhint %}

If unluckily there is a code left, it will show like below:

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image_kgakw4.png)

{% hint style="success" %} <mark style="color:green;">**Step 2:**</mark> Go to Shopify dashboard, choose the Themes tab
{% endhint %}

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/screenshot37ok_1uwdaed.png)

{% hint style="success" %} <mark style="color:green;">**Step 3:**</mark> Select Actions => Edit code
{% endhint %}

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/screenshot38ok_1uv8uj1.png)

{% hint style="success" %} <mark style="color:green;">**Step 4:**</mark> Search for <mark style="color:blue;">`omg-facebook-chat`</mark>, delete this snippet, and click to **Save**.
{% endhint %}

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image_sfvtzo.png)

{% hint style="success" %} <mark style="color:green;">**Step 5:**</mark> Go to Theme.liquid and press **Ctrl + F** to find the code <mark style="color:blue;">`${color}#ff0000`</mark>
{% endhint %}

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image_2m3ex.png)

{% hint style="success" %} <mark style="color:green;">**Step 6:**</mark> Delete the code line then **Save**
{% endhint %}

{% hint style="success" %} <mark style="color:green;">**Step 7:**</mark> Go to Snippets file, then find<mark style="color:blue;">`facebook-chat.js.liquid`</mark> and <mark style="color:blue;">`omg-facebook-chat.liquid`</mark>
{% endhint %}

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/image20211110t033716809z_1f1w3io.png)

{% hint style="success" %}
**Step 8:** Delete those code snippets then **Save.**&#x20;
{% endhint %}

:tada: And you're done! Congrats!&#x20;


---

# 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://ping-me.gitbook.io/pingme-document/common-errors-and-how-to-fix/remove-facebook-chat-and-leftover-code.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.
