diff --git a/client/routes/router.js b/client/routes/router.js
index d75f07595f0b..67d0f4870e5e 100644
--- a/client/routes/router.js
+++ b/client/routes/router.js
@@ -95,19 +95,6 @@ FlowRouter.route('/account/:group?', {
}]
});
-FlowRouter.route('/history/private', {
- name: 'privateHistory',
-
- subscriptions(/*params, queryParams*/) {
- this.register('privateHistory', Meteor.subscribe('privateHistory'));
- },
-
- action() {
- Session.setDefault('historyFilter', '');
- BlazeLayout.render('main', {center: 'privateHistory'});
- }
-});
-
FlowRouter.route('/terms-of-service', {
name: 'terms-of-service',
diff --git a/packages/rocketchat-ui-sidenav/client/sideNav.html b/packages/rocketchat-ui-sidenav/client/sideNav.html
index 3474a37c18f9..f668cbebb462 100644
--- a/packages/rocketchat-ui-sidenav/client/sideNav.html
+++ b/packages/rocketchat-ui-sidenav/client/sideNav.html
@@ -9,12 +9,6 @@
{{#each roomType}}
{{> Template.dynamic template=template data=data }}
{{/each}}
-
- {{#if canViewHistory}}
-
{{_ "More_unreads"}}
diff --git a/packages/rocketchat-ui/client/views/app/privateHistory.html b/packages/rocketchat-ui/client/views/app/privateHistory.html
deleted file mode 100644
index c432346dc6a6..000000000000
--- a/packages/rocketchat-ui/client/views/app/privateHistory.html
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
- {{> header sectionName="History"}}
-
-
-
- {{{_ "Showing_results" history.length}}}
-
-
-
- {{{_ "Showing_archived_results" archivedHistory.length}}}
-
-
-
-
-
diff --git a/packages/rocketchat-ui/client/views/app/privateHistory.js b/packages/rocketchat-ui/client/views/app/privateHistory.js
deleted file mode 100644
index 7c22c1c6254b..000000000000
--- a/packages/rocketchat-ui/client/views/app/privateHistory.js
+++ /dev/null
@@ -1,97 +0,0 @@
-import moment from 'moment';
-
-Template.privateHistory.helpers({
- history() {
- const items = ChatSubscription.find({
- name: {
- $regex: Session.get('historyFilter'),
- $options: 'i'
- },
- t: {
- $in: ['d', 'c', 'p']
- },
- archived: {
- $ne: true
- }
- }, {
- 'sort': {
- 'ts': -1
- }
- });
- return {
- items,
- length: items.count()
- };
- },
- archivedHistory() {
- const items = ChatSubscription.find({
- name: {
- $regex: Session.get('historyFilter'),
- $options: 'i'
- },
- t: {
- $in: ['d', 'c', 'p']
- },
- archived: true
- }, {
- 'sort': {
- 'ts': -1
- }
- });
- return {
- items,
- length: items.count()
- };
- },
- roomOf(rid) {
- return ChatRoom.findOne(rid);
- },
- type() {
- switch (this.t) {
- case 'd':
- return 'icon-at';
- case 'c':
- return 'icon-hash';
- case 'p':
- return 'icon-lock';
- }
- },
- creation() {
- return moment(this.ts).format('LLL');
- },
- lastMessage() {
- if (this.lm) {
- return moment(this.lm).format('LLL');
- }
- },
- path() {
- switch (this.t) {
- case 'c':
- return FlowRouter.path('channel', {
- name: this.name
- });
- case 'p':
- return FlowRouter.path('group', {
- name: this.name
- });
- case 'd':
- return FlowRouter.path('direct', {
- username: this.name
- });
- }
- }
-});
-
-Template.privateHistory.events({
- 'keydown #history-filter'(event) {
- if (event.which === 13) {
- event.stopPropagation();
- return event.preventDefault();
- }
- },
- 'keyup #history-filter'(event) {
- event.stopPropagation();
- event.preventDefault();
- return Session.set('historyFilter', event.currentTarget.value);
- }
-});
diff --git a/packages/rocketchat-ui/package.js b/packages/rocketchat-ui/package.js
index 6eaee63c0ff7..68782079277d 100644
--- a/packages/rocketchat-ui/package.js
+++ b/packages/rocketchat-ui/package.js
@@ -90,7 +90,6 @@ Package.onUse(function(api) {
api.addFiles('client/views/app/popout.html', 'client');
api.addFiles('client/views/app/alerts.html', 'client');
- api.addFiles('client/views/app/privateHistory.html', 'client');
api.addFiles('client/views/app/room.html', 'client');
api.addFiles('client/views/app/roomSearch.html', 'client');
api.addFiles('client/views/app/secretURL.html', 'client');
@@ -110,7 +109,6 @@ Package.onUse(function(api) {
api.addFiles('client/views/app/fullModal.js', 'client');
api.addFiles('client/views/app/home.js', 'client');
api.addFiles('client/views/app/directory.js', 'client');
- api.addFiles('client/views/app/privateHistory.js', 'client');
api.addFiles('client/views/app/room.js', 'client');
api.addFiles('client/views/app/roomSearch.js', 'client');
api.addFiles('client/views/app/secretURL.js', 'client');
diff --git a/server/publications/privateHistory.js b/server/publications/privateHistory.js
deleted file mode 100644
index 47aca4ae7c25..000000000000
--- a/server/publications/privateHistory.js
+++ /dev/null
@@ -1,16 +0,0 @@
-Meteor.publish('privateHistory', function() {
- if (!this.userId) {
- return this.ready();
- }
-
- return RocketChat.models.Rooms.findByContainingUsername(RocketChat.models.Users.findOneById(this.userId).username, {
- fields: {
- t: 1,
- name: 1,
- msgs: 1,
- ts: 1,
- lm: 1,
- cl: 1
- }
- });
-});