Data - Get External Data - Delete Query

Ribbon bar. Select the Data tab. In the Manage group, click External Data and from the menu, select Delete Query; or, select the File tab. In the left pane, click External Data and in the right pane under Query, click Delete...

Classic menus. From the Data - Get External Data submenu (or the File - Get External Data submenu), select Delete Query...

...to delete the query from the active spreadsheet. (Statistica always prompts you to verify that the query should be deleted.) Note that if you have multiple queries on the active spreadsheet, Statistica deletes the query associated with the active cell of the spreadsheet. If you select a cell that is not connected to any query or if you select multiple cells that involve more than one query, the Select Database Query dialog box is displayed so you can choose which query to delete.

See Statistica Query for further details.