You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/lib/admin/actions/package_delete.dart
+30-44Lines changed: 30 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -4,54 +4,40 @@
4
4
5
5
import'../../account/backend.dart';
6
6
import'../../shared/configuration.dart';
7
-
import'../backend.dart';
8
7
import'actions.dart';
8
+
import'moderate_package.dart';
9
9
10
10
final packageDelete =AdminAction(
11
-
name:'package-delete',
12
-
options: {
13
-
'package':'name of package to delete',
14
-
},
15
-
summary:'Deletes package <package>.',
16
-
description:'''
17
-
Deletes package <package>.
11
+
name:'package-delete',
12
+
summary:'Set the admin-deleted flag on a package (making it not visible).',
13
+
description:'''
14
+
Set the admin-deleted flag on a package (updating the flag and the timestamp).
18
15
19
-
Deletes all associated resources:
16
+
A package in this state will appear deleted from the public. But its archive file will still exist in the canonical bucket, and the metadata will still be present.
20
17
21
-
* PackageVersions
22
-
* Likes
23
-
* AuditLogRecords
24
-
* PackageVersionAsset
25
-
* replacedBy references
26
-
* archives (might be retrievable from backup)
18
+
After 2 months it will be fully purged.
27
19
28
-
The package will be "tombstoned" and no package with the same name can be
29
-
published later.
20
+
To undo a deletion run the same command with `state: false`.
Copy file name to clipboardExpand all lines: app/lib/admin/actions/package_version_delete.dart
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,13 @@ final packageVersionDelete = AdminAction(
12
12
summary:
13
13
'Set the admin-deleted flag on a package version (making it not visible).',
14
14
description:'''
15
-
Set the admin-deleted flag on a package version (updating the flag and the timestamp). After 2 months it will be fully deleted.
15
+
Set the admin-deleted flag on a package version (updating the flag and the timestamp).
16
+
17
+
A package version in this state will appear deleted from the public. But its archive file will still exist in the canonical bucket, and the metadata will still be present.
18
+
19
+
After 2 months it will be fully purged.
20
+
21
+
To undo a deletion run the same command with `state: false`.
0 commit comments