@nalakan
Your compass in the Data Universe | Data Whisperer
Data Architect specializing in modern analytics platforms across banking, education, and enterprise environments. Designing scalable lakehouse architectures with Microsoft Fabric, Azure, Databricks, Snowflake, and dbt, with strong expertise in Power BI, semantic modeling, DAX, and Power Query.
Focused on building secure, high-performance, governed data platforms that enable real-time intelligence and self-service analytics, while exploring how GenAI and Azure AI bring practical intelligence into everyday analytics.
Available for services, mentoring, support, presentations, and speaking activities.
Great! If we want to delete items from a different workspace instead of the current one, we can change the code as follows. from tqdm import tqdm import sempy.fabric as fabric def nuke_workspace(workspace_name): workspace_id = fabric.resolve_workspace_id(workspace_name) items = fabric.list_items(workspace=workspace_id) items_to_delete = items['Id'] client = fabric.FabricRestClient() print(f"{len(items_to_delete)} items will be deleted in workspace {workspace_name}") for item in tqdm(items_to_delete, desc="Deleting items"): client.delete(f"/v1/workspaces/{workspace_id}/items/{item}") remaining_items = fabric.list_items(workspace=workspace_id)['Display Name'].to_list() print(f"Remaining items in workspace {workspace_name}: {remaining_items}") workspace_name = "Enter_WS_Name" nuke_workspace(workspace_name)