# destroyPod method

1. @override

Future<void> destroyPod(

1. String name,
2. Object pod

)

Destroy the given pod.

This method performs the actual pod destruction including:

- Dependency destruction
- Disposable pod cleanup
- Contained pod destruction
- Dependency map cleanup

`name`: The name of the pod being destroyed `pod`: The pod instance to destroy (may be null)

Example:

    final pod = registry.getSingleton('userService');
    registry.destroyPod('userService', pod);

## Implementation

    @override
    Future<void> destroyPod(String name, Object pod) async => _destroy(name, pod, getLocalMergedPodDefinition(name));