Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you delete Phabricator project or task

Tags:

phabricator

I use Phabricator for code review, but I can't delete a project once it was created. The only thing I can do is change the project status from active to archived. The other problem is Task, same to project, I can't delete a task once it was created.

Sometimes, people try to test Phabricator, maybe he or she creates some mock projects, it makes sense to delete them after testing.

like image 623
ZhenYu Wang Avatar asked May 24 '13 08:05

ZhenYu Wang


People also ask

How do I create a task in Phabricator?

You can also create tasks by sending email to [email protected]. The subject will be used as the task title, the body will be used directly as is, and attachments will be included on the task. To set a project, add the corresponding command "! projects" and its hashtag at the beginning of the body, e.g., !

How do I create a tag in Phabricator?

Tags: To create a tag, just create a project without any members. Then tag anything you want.


2 Answers

It is possible, but only by using the command line administration tools.

Remove a task? ./phabricator/bin/remove destroy TASK-ID (ie: T1, T23)

Remove a project? ./phabricator/bin/remove destroy PHID-PROJ-6i6ofxwwz4xybdvg7oa5

Here is how to find the PHID: How do you find the PHID of a Phabricator object?

like image 174
mxbrew Avatar answered Sep 19 '22 11:09

mxbrew


I've asked the Phabricator developer on IRC, user can't delete a project or task, this is designed on purpose, the only way to do it is archive project or close task. Refer to his reply as below:

We do not plan to add that feature, the feature would create a lot of problems. For example, some user could delete your stuff and you'd have no way to tell who did it. If a user closes or archives your stuff, it says "alincoln closed this task." Another problem is that a project may have thousands or millions of objects attached to it. If you delete the project, either all of those objects become attached to an empty/invalid project, or we need to run some sort of background cleanup process. And there's no way to undo deletion, so users who make mistakes can't recover from it.

like image 27
ZhenYu Wang Avatar answered Sep 16 '22 11:09

ZhenYu Wang