# Listing and Deleting Persona Uploaded Files Using API

**URL:** https://meta.discourse.org/t/listing-and-deleting-persona-uploaded-files-using-api/352955
**Category:** Support
**Tags:** ai
**Created:** [February 18, 2025, 7:03pm UTC](https://meta.discourse.org/t/listing-and-deleting-persona-uploaded-files-using-api/352955 "2025-02-18T19:03:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 19, 2025, 6:41am UTC](https://meta.discourse.org/t/listing-and-deleting-persona-uploaded-files-using-api/352955/2 "2025-02-19T06:41:59Z")

</div>

> [@oppman](#):
>
> It would be ideal if I could give the Discourse AI plugin access to the user\_notes fields directly for admins and staff.

I can think of a rube goldberg solution that would work fine.

1. Create a parameterized [data explorer](https://meta.discourse.org/t/32566?silent=true) query that finds it
2. Create an API key with the ability to run said query
3. Create a custom tool to query it using discourse API

I guess the big question here is … do you want to unconditionally add this information to the context or is this context lookup a result of a user action?

---

_[View the full topic](https://meta.discourse.org/t/listing-and-deleting-persona-uploaded-files-using-api/352955)._
