DELETE SQL with runPrepQuery return error

Hi all
I have a problem with runPrepQueri when I use this command my SQL command is executed but returns an error.
What I doing wrong.
My code :

id = self.getSibling(“Table”)[0][‘CarovyKod’]
query = ‘DELETE FROM RevizeRucNaradiSpotrebic WHERE CarovyKod = ?’
args = [id]

And the error is here :

What happens if you execute the query directly on the database using SSMS (SQL Server) or other database management tool?

The “Details” tab with “Full” selected will provide better clues as well.

Since it is a DELETE FROM query, I believe you need to user system.db.runPrepUpdate() insead.

Yes, thank you now it working without problems :smiley: