title: Delete specific ALARM from AlarmManger in Android
body: <p>I am building a reminder app using alarmManger but I don't know how to delete a specific alarm.</p>
  
  <pre><code>AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
  
  Calendar calendar = Calendar.getInstance();
  calendar.setTimeInMillis(System.currentTimeMillis());
  calendar.set(Calendar.HOUR_OF_DAY, 10);
  calendar.set(Calendar.MINUTE, 30);
  
  Intent intent = new Intent(MainActivity.this, AlarmReceiver.class);
  PendingIntent alarmIntent = PendingIntent.getBroadcast(getApplicationContext(), 0, intent, 0);
  manager.set(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(),pendingIntent);
  </code></pre>
  
  <p>The Receiver is a normal and simple Receiver.</p>
  
  <p>My problem is that I want to edit/remove an alarm that has been added.
  I know conceptually how to <a href="https://stackoverflow.com/questions/4963271/android-alarmmanager-problem-with-setting-resetting-an-alarm/5055517#5055517">remove an alarm</a>, but I can't remove a specific alarm in alarmManger when several have been added.</p>