Auto-remove type and group

When type or group deleted it now deleted from exp and type tables