should be:ClientDataSet1.commandtext:='delete from xspd where id="XC-CD-020520-1001"';