Hi Lira,
Your query seems to have cell definitions.
do you want to delete the cell definations as well?
Simply right click on the structure and remove reference if its a global structure and then right click again and choose remove to remove this sturcture.
If you still face the problems then you will have to first remove all the cell references and cell definitions by going in the 'Cells' tab next to 'Filter' and 'rows/Columns'.
Once you have removed all the cell references and cell definitions, try to delete the structure again. this time you should not receive these errors.
Hope this helps.
-Swati.