There are four commands, two for removing a sentrygun, two for removing a dispenser:

admin_detsentry < target > - Removes the target's sentry gun.
admin_detsg < target > - Removes the target's sentry gun.

admin_detdispenser < target > - Removes the target's dispenser.
admin_detdisp < target > - Removes the target's dispenser.