---
schema_version: "1"
id: 67842def6f2b49e01c8ae363055410344d4c25479bfc2c36d39938a25d1f055e
title: Deleting API Specs and Fragments
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/anypoint-code-builder/des-delete-api-projects.md
canonical_url: https://docs.mulesoft.com/anypoint-code-builder/des-delete-api-projects
source_site: docs.mulesoft.com
content_type: documentation
content_hash: cdc9b597ea695e56653152ebe965e3bce42c0d2d42c9a3b3aecc34c6a22782fa
description: MuleSoft Documentation Site
latest: true
---
---
product: Anypoint Code Builder
version: master
---

# Deleting API Specs and Fragments

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Deleting API specs and fragments varies depending on the project creation date and project hosting.

- To delete a design project hosted locally on Anypoint Code Builder, delete the entire project
  folder.

- To delete a design project hosted on US cloud or EU cloud with an API spec imported from MuleSoft
  VCS, you must delete the project from MuleSoft VCS by accessing Design Center.

- To delete a design project created with versions of Anypoint Code Builder released prior to
  February 2024 that required storage of the spec in the MuleSoft VCS, you must delete the project
  from MuleSoft VCS by accessing Design Center.

- To delete a project hosted on JP cloud or CA cloud, you must use an Anypoint CLI command.

> [!NOTE] You must delete the previous project to reuse the project name for a new design project in
> Anypoint Code Builder.

## Before You Begin

- [Set up and access Anypoint Code Builder](https://docs.mulesoft.com/anypoint-code-builder/start-acb).

- Create a [spec](https://docs.mulesoft.com/anypoint-code-builder/des-create-api-specs) or [fragment](https://docs.mulesoft.com/anypoint-code-builder/des-create-api-fragments).

## Delete an API Spec from Anypoint Code Builder

To delete an API project (API spec or API spec fragment) from Anypoint Code Builder:

1.  In the Explorer view, right-click on the folder and select **File** > **Open Folder**.

2.  Locate the folder for the project to delete.

3.  Right-click and select to delete the folder.

## Delete an API Design Project

API design projects
[imported to Anypoint Code Builder from Design Center](https://docs.mulesoft.com/anypoint-code-builder/des-create-api-specs#import-spec) or created
in Anypoint Code Builder before the February 2024 release automatically connect to MuleSoft VCS,
which enables you to sync with a corresponding design project.

Design project names must be unique. To create a new design project with a name already used in
Anypoint Code Builder, you must delete the existing project.

To delete an API project (API spec or API spec fragment) from Anypoint Code Builder:

1.  In Anypoint Code Builder, [delete the spec](#delete-spec).

To delete a design project from Design Center:

1.  Navigate to Anypoint Platform and log in using your credentials.

    Show me how

    - US cloud (non-EU host): [Anypoint Platform (US)](https://anypoint.mulesoft.com/login/)

    - EU cloud (EU host): [Anypoint Platform (EU)](https://eu1.anypoint.mulesoft.com/login/)

2.  Select **Design Center** from the navigation panel.

3.  Select **API Projects** from the navigation panel.

4.  Select the project and click the ![](/mulesoft/current/en-us/anypoint-code-builder/_images/icon-dc-delete-project.png) (**Delete Project**)
    icon.

To delete a design project by using Anypoint CLI:

1.  Run this command:

designcenter:project:delete \[flags\] <name>

For more information, see
[delete design projects using Anypoint CLI](https://docs.mulesoft.com/anypoint-cli/latest/design-center#designcenter-project-delete).

## See Also

- [Creating and Importing API Specifications](https://docs.mulesoft.com/anypoint-code-builder/des-create-api-specs)

- [Creating and Using API Spec Fragments](https://docs.mulesoft.com/anypoint-code-builder/des-create-api-fragments)

- [About Design Center](https://docs.mulesoft.com/design-center/)
