remove_data_layer_instance
Deletes a data layer instance from a World Partition editor world, verifying removal by read-back. Returns an error on non-WP maps and reports if already deleted.
Instructions
Removes a data layer instance from the editor world's World Partition (inverse of create_data_layer_instance). Uses UDataLayerEditorSubsystem::DeleteDataLayer (void), verified by read-back: after delete GetDataLayerInstance(asset) must be null. Requires a World Partition world; on a non-WP (default) map this returns an honest error (no editor-world swap). Idempotent: already_deleted=true when no instance referenced the asset before the call.
Returns: { data_layer_asset_path: string, deleted: bool, already_deleted: bool, instance_name?: string, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_layer_asset_path | Yes | Full /Game path to the UDataLayerAsset whose instance should be removed from the world. |