public function postUninstall($module_name) {
    // Get install and optional configs list for module_name.
    $module_path = drupal_get_path('module', $module_name);
    $file_storage_install = new FileStorage($module_path . '/config/install');
    $module_install_configs = $file_storage_install->listAll();
    $file_storage_optional = new FileStorage($module_path . '/config/optional');
    $module_optional_configs = $file_storage_optional->listAll();
    // Find entity bundles based on configs list.
    $entity_bundles_list = $this->getEntityBundles($module_install_configs);
    foreach ($entity_bundles_list as $data) {
      // Delete entity data for bundle and config entity type.
      $this->removeEntityBundle($data['entity_type'], $data['config_entity_type'], $data['bundle'], $data['bundle_field']);
    }
    $this->removeModuleConfigs(array_merge($module_install_configs, $module_optional_configs));
  }