Added data adaption to the DELETE function