Hi Phoenix team - if I know the span_id for a particular trace, is there any way to delete it from the database? Context: this is a legal requirement for using Phoenix in production where the users should be able to request to delete their data anytime. Thanks!
💡 Hint: Mention RunLLM in the thread for followups.
Could you please share more details on the SQL queries to delete the record by using span_id?
Like the table, and the related schema etc. Thanks!
If you tell me the right answer to this question, I'll make sure I don't make the same mistake twice!
Feedback
Type the right answer here...
↵ Please 'enter' to submit
Hey Grace C., definitely hear you on this. I'd strongly recommend not to manually delete spans from the database since there are complex relationships between the spans tables and other tables (traces, sessions, etc.). If you file us an enhancement request on GitHub, we'll add a POST route to delete spans by ID.
This one: https://github.com/Arize-ai/phoenix
Request added - thanks Xander S. Dustin N.! 🙏 https://github.com/Arize-ai/phoenix/issues/7937
