Skip to main content
Question

Clear out pending push notifications

  • December 18, 2012
  • 5 replies
  • 10 views

jhbush
Forum|alt.badge.img+27

I had a few push notifications from Profiles that were removed, but they just never seemed to go away. This is a way to get rid of them:

Open a shell prompt

sudo mysql

Once at the prompt, type:

use jamfsoftware

Then type the command:

delete from mobile_device_management_commands where apns_result_status != 'Acknowledged';

5 replies

Forum|alt.badge.img+17
  • Contributor
  • December 24, 2012

Nice one! Do you happen to know how to push the ones saying pending but not applying?


jhbush
Forum|alt.badge.img+27
  • Author
  • Esteemed Contributor
  • January 13, 2013

Cem, this removes failed push notifications. Just make sure you have a backup.

delete from mobile_device_management_commands where error_code !='-1';


Forum|alt.badge.img+21
  • Valued Contributor
  • September 3, 2015

Is anyone using this regularly, or is there a better way to do this now?


Forum|alt.badge.img+4
  • Contributor
  • April 19, 2016

BUMP


Forum|alt.badge.img+5

it's the way I have been doing this.