# Deleting Timeline notifications

**URL:** <https://community.homey.app/t/deleting-timeline-notifications/77669>\
**Category:** Questions & Help\
**Created:** [March 13, 2023, 7:48pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669 "2023-03-13T19:48:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [March 13, 2023, 7:48pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/1 "2023-03-13T19:48:42Z")

</div>

Timeline notifications can cause the Homey app to crash/slow down. @Caseda gave me this hint. Therefore i made a flow which checks every 7 days if the timeline notifications exceeds 250 lines. In that case the notifications will be deleted.

 ![2023-03-13](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/a/aa9bfb009944bb791d3e8b88e60dd0d387e2474c.png)

```auto
await Homey.notifications.getNotifications()
  .then(result => tmp = Object.keys(result).length, 'Notifications')
  .catch(err => {log('Failed: Getting Notifications')});

if(tmp >= 250)
{
await Homey.notifications.deleteNotifications()

await Homey.flow.runFlowCardAction({
uri: 'homey:manager:notifications',
id: 'create_notification',
args: {
text: 'Timeline notifications exceeded 250 lines. Total amount of notifications: ' +tmp},
});
}

```

Enter @ the THEN part in the homeyscript flowcard Run a script the above script.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 13, 2023, 7:53pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/2 "2023-03-13T19:53:00Z")

</div>

Wait, what? You are saying it is easy AF to auto-cap the timeline messages?? Looking for that since I own a Homey man!  
There was an app though, but that one didn’t work for me.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [March 13, 2023, 7:55pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/3 "2023-03-13T19:55:30Z")

</div>

I didn’t think HomeyScript had the privileges to delete notifications.

But it will be (officially) fixed soon anyway, little birdie told me that.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [March 13, 2023, 8:01pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/4 "2023-03-13T20:01:09Z")

</div>

Which means this will be not possible in the future?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 13, 2023, 8:08pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/5 "2023-03-13T20:08:14Z")

</div>

It indeed doesn’t actually delete them yet, but if it will in time (soon™) I’ll be happy anyway 😉

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [March 13, 2023, 10:32pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/6 "2023-03-13T22:32:19Z")

</div>

Using for this purpose Timeline Manager2 - [Homey Community Store](https://store.homey.community/app/nl.onzewifi.timelinemanager2) - after install, it’s required to setup Web Api settings / Bearer Token.

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [March 13, 2023, 11:10pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/7 "2023-03-13T23:10:00Z")

</div>

Not sure if it will work on the new HP2023, but if all goes well I’ll recieve mine tommorow… 🤞

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [March 13, 2023, 11:23pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/8 "2023-03-13T23:23:38Z")

</div>

HCS is not yet supported on HP2023 ☹

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [March 13, 2023, 11:24pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/9 "2023-03-13T23:24:24Z")

</div>

I know, but CLI install should work…

---

<div class="post-metadata">

**Author:** ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)\
**Post date:** [March 13, 2023, 11:34pm UTC](https://community.homey.app/t/deleting-timeline-notifications/77669/10 "2023-03-13T23:34:04Z")

</div>

Yes, you can add apps by CLI.  
Have already downloaded some apps myself from the HCS, and succesfully installed them by CLI.  
Workes like a charm…!  
;
