Delete temporary keys generated by queries