> ## Documentation Index
> Fetch the complete documentation index at: https://developer.upsun.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a project

> See how to delete projects you no longer need.

export const VariableBlock = ({name}) => {
  return <var spellCheck={false} title={`Replace '${name}' with your own data`}>{name}</var>;
};

export const MoreIcon = () => <svg width="24px" height="24px" style={{
  display: 'inline',
  verticalAlign: 'middle'
}}>
    <title id="more-icon">More</title>
    <path d="M12 6.5C12.8284 6.5 13.5 5.82843 13.5 5C13.5 4.17157 12.8284 3.5 12 3.5C11.1716 3.5 10.5 4.17157 10.5 5C10.5 5.82843 11.1716 6.5 12 6.5Z" fill="current"></path>
    <path d="M12 13.5C12.8284 13.5 13.5 12.8284 13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5Z" fill="current"></path>
    <path d="M12 20.5C12.8284 20.5 13.5 19.8284 13.5 19C13.5 18.1716 12.8284 17.5 12 17.5C11.1716 17.5 10.5 18.1716 10.5 19C10.5 19.8284 11.1716 20.5 12 20.5Z" fill="current"></path>
  </svg>;

To delete a project, you must be an organization owner or have the [manage plans permission](/docs/administration/users#organization-permissions).

<Note>
  If your project has custom domains attached, you must remove the default domain  before you can delete the project.
  To do so, run `upsun domain:delete <YOUR_DOMAIN>` or go to your project's **Settings** > **Domains** in the Console.
</Note>

To delete an Upsun project, including all data, code, and active environments:

<Tabs>
  <Tab title="In the Console">
    1. On the tile of the project you want to delete, click **<MoreIcon /> More**.
    2. Click **Project settings**.
    3. Click **Delete project**.
    4. To confirm your choice, enter the project's name.
    5. Click **Yes, Delete Project**.
  </Tab>

  <Tab title="Using the CLI">
    1. Run the following command:

       ```bash theme={null}
       upsun project:delete --project <PROJECT_ID>
       ```

    2. Read the consequences to deletion and enter `y`.

    3. Enter the project title to confirm.
  </Tab>
</Tabs>

You are billed only for the portion of a month when the project was active.

When you remove all your projects from your user account,
you stop being charged.
