# API - Delete isn't working

**URL:** https://meta.discourse.org/t/api-delete-isnt-working/329175
**Category:** Support
**Created:** [October 3, 2024, 10:55am UTC](https://meta.discourse.org/t/api-delete-isnt-working/329175 "2024-10-03T10:55:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Aditya\_Shevle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aditya_shevle/32/347008_2.png) [@Aditya\_Shevle](https://meta.discourse.org/u/Aditya_Shevle)
#### Post date: [October 3, 2024, 10:55am UTC](https://meta.discourse.org/t/api-delete-isnt-working/329175/1 "2024-10-03T10:55:33Z")

</div>

Hi everyone,

We’re currently trying to access the Discourse delete API but are encountering the following error:

```plaintext
{
    "errors": [
        "You are not permitted to view the requested resource."
    ],
    "error_type": "invalid_access"
}

```

Could someone please assist us with this? Is there a setting in Discourse that might be causing this issue?

Thank you!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 3, 2024, 7:50pm UTC](https://meta.discourse.org/t/api-delete-isnt-working/329175/2 "2024-10-03T19:50:24Z")

</div>

It looks like you’re not passing a valid API key and user.

So you might share what you’re doing (with the actual key redacted).
