1 #!/data/data/com.termux/files/usr/bin/sh
4 SCRIPTNAME=termux-notification-remove
6 echo "Usage: $SCRIPTNAME notification-id"
7 echo "Remove a notification previously shown with termux-notification --id."
11 while getopts :h option
15 ?) echo "$SCRIPTNAME: illegal option -$OPTARG"; exit 1;
20 if [ $# != 1 ]; then echo "$SCRIPTNAME: no notification id specified"; exit 1; fi
22 /data/data/com.termux/files/usr/libexec/termux-api NotificationRemove --es id $1