investigating the deleteData query function