# Feature OP-12958 - Delete project folders on project deletion

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-12958

## Planning

| Attribute | Value |
| --- | --- |
| Date | 2022-06-13 –  |
| Priority | Medium |
| Target versions | 13.0.0 |
| Sprint | 13.0.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a user   
**I want to** delete project folders during a project deletion  
**so that** OpenProject's files on Nextcloud is in a clean state and no orphans (files or directories) are hanging around.

**Acceptance criteria**

  - After a project deletion an active automatic project folder have to be deleted.
      - Automatically managed project folders that were hidden during project\_folder\_mode changes have to be removed as well. Note: The data about them is saved in `last_project_folders` database table.
  - An event to trigger project folder sync is thrown.
