Unable to delete tags

I want to clean up the tags in our community and delete ones that have fallen out of flavor but every time I try to do it, I run into this error message:

How can I get past this error and delete tags?

1 Like

Are you able to try deleting a tag and and then looking at your site’s error logs? You can find your error logs by going to your Admin / Logs page and then clicking the “Error Logs” link from the navigation menu. It is possible there will be some useful information in the log files. Be careful to not post any sensitive information here though.

You might also be able to see the error by opening your browser’s web inspector to its console tab and then trying to delete a tag.

Can you let us know what version of Discourse your site is on? The version number is displayed near the top of the Admin Dashboard page.

We are getting a 404 error on the Delete Request.Error:

{"errors":["The requested URL or resource could not be found."],"error_type":"not_found"}

IT seems like Discourse is sending delete request on an incorrect URL: https://community.dataquest.io/tags/welcome

The correct URL is the following: https://community.dataquest.io/tag/welcome

Here are some details:

Request URL: https://community.dataquest.io/tags/welcome
Request Method: DELETE
Status Code: 404
Referrer Policy: strict-origin-when-cross-origincontent-encoding: gzip
content-type: application/json; charset=utf-8
date: Fri, 20 Nov 2020 14:00:26 GMT
server: nginx
status: 404
vary: Accept-Encoding
x-runtime: 0.004177:authority: community.dataquest.io
:method: DELETE
:path: /tags/welcome
:scheme: https
accept: */*
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9,hi;q=0.8
discourse-logged-in: true
discourse-present: true
origin: [https://community.dataquest.io](https://community.dataquest.io/)
referer: https://community.dataquest.io/tag/welcome
sec-ch-ua: "Chromium";v="86", "\"Not\\A;Brand";v="99", "Google Chrome";v="86"
sec-ch-ua-mobile: ?0
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
x-requested-with: XMLHttpRequest

Weirdly, I cannot see the error mentioned above in the logs.

Our current Discourse version is: 2.6.0.beta5

2 Likes

The tags route was recently renamed from /tags/<tagname> to /tag/<tagname>. I think the issue that you are running into was fixed though. Can you try updating to the latest version of Discourse and see if that fixes the issue?

2 Likes