---
title: "Discussion on \"Nuke Fabric Workspace\" | Hashnode"
description: "Discussion on \"Nuke Fabric Workspace\". Handy if you use one feature workspace for all development"
url: "https://hashnode.com/posts/nuke-fabric-workspace/67b4aa6fbe92a9cb0dab825f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Nuke Fabric Workspace](https://fabric.guru/nuke-fabric-workspace?utm_source=hashnode&utm_medium=feed)

Handy if you use one feature workspace for all development

Feb 18, 2025 · 2 min read · fabric.guru  
Updated Mar 23, 2025  
Read the article

-   [#semantic-link](https://hashnode.com/tag/semantic-link)
-   [#microsoft-fabric](https://hashnode.com/tag/microsoft-fabric)

## Written by

[Sandeep Pawar](https://hashnode.com/@PawarBI)

@PawarBI

  
[View profile](https://hashnode.com/@PawarBI)

Building Data Analytics and Data Science solutions using Microsoft Fabric | Principal PM, Microsoft Fabric CAT

Principal Program Manager, Microsoft Fabric CAT helping users and organizations build scalable, insightful, secure solutions. Blogs, opinions are my own and do not represent my employer.

## Responses

Markdown supported · ⌘↵ to post

[Nalaka Wanniarachchi](https://hashnode.com/@nalakan)

[Feb 19, 2025](https://hashnode.com/posts/nuke-fabric-workspace/67b4aa6fbe92a9cb0dab825f/comment/67b5664f5a489e8de388c05b)

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)
