I SURE HOPE YOU KNOW WHAT YOU ARE DOING.
WHY WOULD YOU WANT TO DELETE ALL THE QUERIES?
This is the first time that I know how to answer your request, but have choosen not to reply to your request because I need a REAL GOOD reason as to why you want to delete all the queries before I want to participate in helping to delete all the queries in an application.
I understand GolferGuy's trepidation in answering, because someone could use it to destroy someone else's database. Even if that was your intention, I can't imagine you telling us so. Sort of like asking someone if their a terrorist on a visa application...
In any event, I will work under the assumption that you have a valid reason to ask for this. But even if that is the case, there's no stopping someone who wants to use this code maliciously from doing so.
Here's one way to do it with code using DAO's Querydefs collection.
Public Sub DelAllQrydef()
On Error GoTo ErrMsg:
If MsgBox("Delete ALL queries?", vbYesNo + vbCritical) = vbYes Then
Dim db As DAO.Database
Dim qdefs As DAO.QueryDefs
Dim i As Long, iMax As Long
Set db = CurrentDb()
iMax = db.QueryDefs.Count
If iMax > 0 Then
For i = 1 To iMax
On Error Resume Next
MsgBox "Error " & Err.Number & " (" & Err.Description & ")"