Delete a project

  • Users with super or admin privileges in P4 Server can delete projects.
    • If the P4 Code Review user has insufficient permissions, cleanup on the deleted P4 projects will fail.
  • Project owners can delete projects that they own.
  • If a project has no owners, any member of the project can delete the project.

When you delete a project, P4 Code Review will try to clean it up by doing the following:

  • The deleted project is removed from the P4 Code Review project list on the dashboard, and from project searches.
  • The deleted project is removed from the profile page of the project owners, members, moderators, and followers.
  • The project name is removed from the Project column on the Reviews list page.
  • Reviews that belong to the deleted project are not changed. The open and closed reviews remain accessible, their review states, comments, and tasks can be modified as normal.
  • Reviews that belong to the deleted project, the project branch name link in the review heading is replaced with a link to the common depot location that contains the files included in the review.

The deleted project name cannot be reused for a new project. This behavior is not case sensitive, this means that if you delete a project called Project B you cannot create a new project called project b.

Use the following steps to delete a project:

  1. Visit the project page you want to remove.
  2. Click Settings in the project menu and navigate to the General Settings tab.
  3. Click Delete.

    A confirmation dialog appears to confirm whether you want to delete the project.

  4. Click Confirm to delete.

When an owner is deleted outside of P4 Code Review

When a project owner is deleted from P4 Server, the ownership of the project may change depending on the users and owners associated with the project.

  • If a project has more than one owner and one of these owners is deleted from P4 Server, the project remains as it is and the deleted user is removed from the project with ownership kept among the remaining owners.

  • If a project has one owner and at least one project member, when the owner is deleted from P4 Server, the project remains as it is but project ownership is transferred to P4 Code Review.

  • If a project has one owner and no members, when the owner is deleted from P4 Server, the project is deleted by P4 Code Review.