In order to delete a Query, click on the checkbox to left of the query key and click Delete. Upon click of the Delete link and once you confirm, query will be deleted. If the query is used in a test case, it will provide an error message and does not allow the deletion of it.