data_access/alarm_index.js
/**
 * Deletes all private one time alarms from a certain user
 * @param {String} author_id - The id of the user that sets it up if it is applicable
 */
Deletes all private one time alarms from a certain user
@param {String} author_id - The id of the user that sets it up if it is applicable
Deletes all private one time alarms from a certain user @param { String } author_id - The id of the user that sets it up if it is applicable
async function delete_all_private_oneTimeAlarm_from_user(author_id) {
    return await One_Time_Alarm_model.deleteMany({
        $and: [
            { user_id: author_id },
            { isPrivate: true }
        ]
    });
}
async function delete_all_private_oneTimeAlarm_from_user ( author_id ) { return await One_Time_Alarm_model . deleteMany ( { $and : [ { user_id : author_id } , { isPrivate : true } ] } ) ; }
Deletes all private one time alarms from a certain user
 @param {String} author_id - The id of the user that sets it up if it is applicable
Deletes all private one time alarms from a certain user @param { String } author_id - The id of the user that sets it up if it is applicable