Look at the following example, you can go through the list of forms..and do whatever...i.e. delete them as well using:
docmd.DeleteObject acForm,"FormName"
and you can delete any module as well
docmd.DeleteObject acModule,"ModuleName"
Sub AllForms()
Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentProject
' Search for open AccessObject objects in AllForms collection.
For Each obj In dbs.AllForms
If obj.IsLoaded = TRUE then
' Print name of obj.
Debug.Print obj.Name
End If
Next obj
End Sub