diff --git a/app/menus/CollectionMenu.js b/app/menus/CollectionMenu.js
index fb7d3434..1a7edf0d 100644
--- a/app/menus/CollectionMenu.js
+++ b/app/menus/CollectionMenu.js
@@ -65,7 +65,6 @@ class CollectionMenu extends Component {
render() {
const { collection, label, onOpen, onClose } = this.props;
- const { allowDelete } = collection;
return (
@@ -91,9 +90,7 @@ class CollectionMenu extends Component {
Edit…
)}
- {allowDelete && (
- Delete…
- )}
+ Delete…
);
diff --git a/app/menus/DocumentMenu.js b/app/menus/DocumentMenu.js
index e6103d6e..c6647371 100644
--- a/app/menus/DocumentMenu.js
+++ b/app/menus/DocumentMenu.js
@@ -47,7 +47,6 @@ class DocumentMenu extends Component {
render() {
const { document, label } = this.props;
- const { allowDelete } = document;
return (
}>
@@ -69,11 +68,7 @@ class DocumentMenu extends Component {
Print
Move…
- {allowDelete && (
-
- Delete…
-
- )}
+ Delete…
);
}
diff --git a/app/models/Collection.js b/app/models/Collection.js
index ba7e6468..30c09f38 100644
--- a/app/models/Collection.js
+++ b/app/models/Collection.js
@@ -33,11 +33,6 @@ class Collection extends BaseModel {
: this.url;
}
- @computed
- get allowDelete(): boolean {
- return true;
- }
-
@computed
get isEmpty(): boolean {
return this.documents.length === 0;
diff --git a/app/models/Document.js b/app/models/Document.js
index a2769f7e..1771600d 100644
--- a/app/models/Document.js
+++ b/app/models/Document.js
@@ -89,17 +89,6 @@ class Document extends BaseModel {
return !this.isEmpty && !this.isSaving;
}
- @computed
- get allowDelete(): boolean {
- const collection = this.collection;
- return (
- collection &&
- collection.type === 'atlas' &&
- collection.documents &&
- collection.documents.length > 1
- );
- }
-
@computed
get parentDocumentId(): ?string {
return this.pathToDocument.length > 1