https://promptfoo.dev/ logo
I can't delete my evals from the command line
# ❓|questions
v
Hey, all! Trying to delete one eval from the command line doesn't seem to work:
Copy code
promptfoo delete eval-2024-09-24T20:12:02
Could not delete evaluation with ID eval-2024-09-24T20:12:02:
SqliteError: FOREIGN KEY constraint failed
From the UI, Eval Actions > Delete also returns an error:
Failed to delete evaluation
. Any hints to debug this? Thanks in advance
m
@vitojph can you check your promptfoo version with
promptfoo --version
? If you are on an old version please try upgrading. If you are on the latest version - are there any other messages / stack traces etc?
v
hey, @michaelmichaelmichael ! I'm running the latest version with
npx
. There's no other messages.
Copy code
npx promptfoo@latest delete eval-2024-09-24T20:12:02
Could not delete evaluation with ID eval-2024-09-24T20:12:02:
SqliteError: FOREIGN KEY constraint failed
npx promptfoo@latest --version
0.90.0
While this is fixed, let me tell you all that I managed to delete the evals connecting directly with the sqlite database.
sqlite3 .promptfoo/promptfoo.db
And
delete from evals where id in (id1, id2)
m
@vitojph I am glad you were able to resolve it. I haven't been able to replicate on my end. Please let me know if you notice it again and I'll investigate further.
v
No worries @michaelmichaelmichael Is there any way I can run the delete command in a debug mode to see and share more logs? It's probably some stupid problem with permissions
m
I'll add some more debug statements to the next release so you can run it in --verbose mode