There is more than one approach to handling the destination group, but this is a simple example…
set DB to "Test2" -- This is the name of the database to be used
set dest to "/Test2 Inbox/New Group 4" -- This is the group to be used. Paths for group locations MUST be entered in this fashion.
tell application id "DNtp"
if DB is not in (name of databases) then -- You need to check if the database is open.
display alert "Database " & DB & " is not open!" & return & return & "Please open it."
return
else
set destinationGroup to get record at dest in database DB -- You need to specify the database, otherwise the current database will be queried. A VERY likely scenario since you'd be working while Hazel works in the background
set newRecord to (import theFile to destinationGroup)
if (exists newRecord) then tell application "Finder" to delete theFile
end if
end tell