clear_data_registry_sources
Empty a UDataRegistry asset's DataSources array and save it, returning counts before and after. Use refresh_data_registry_map() afterward so the subsystem re-reads the registry map.
Instructions
Empty the DataSources[] array on a UDataRegistry and save the asset. Honest: UDataRegistrySubsystem has no public UnregisterRegistry, so this does NOT unregister the registry from the subsystem registry map. The already-loaded sources may still be queryable for their cached items until the editor restarts. Use refresh_data_registry_map() after editing to force the subsystem to re-read the registry map.
Returns: { registry_path: string, source_count_before: int, source_count_after: int, cleared: bool, save_error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| registry_path | Yes | Content path to the UDataRegistry asset. |