bugfix

was getting syntax error using date & time so chagned this to get
the AlarmID and use that to remove metadata