NuGet/NuGetGallery — Issue #378: Packages need to support a 'deleted' state
Author: davidebbo
Created: 2012-01-03 05:11:05+00:00
State: open

Currently, packages can be unlisted, but not deleted. We have decided not to expose package deletion to end users as it could be abused, but we do need the ability for admins to mark packages as deleted (or delete them altogether).

Instead of adding an additional flag, I think it would make more sense to turn the current Listed flag into some kind of State enum, with values Active, Unlisted, Deleted:

* Active: never excluded in feed & site code paths
* Unlisted: excluded for listing functionality (same as today)
* Deleted: always excluded, making it completely uninstallable.

Big question is: how much do we trust our ability to migrate our schema? :) Maybe that’s an argument to just add a new flag, even though it’s a dirtier solution (since the flags are not independent).