//This code works if I edit the sheet but does not work if the link sheet is modified.I think it is because the cell that is being modified is the cell from another sheet that is linked to the sheet where I want the cells to be deleted.
function onEdit(e){ if(e.range.getA1Notation() == 'A1'&& e.range.getSheet().getName() == 'Incdt/Obs Rpt' ) e.source.getRange('B1').clear()}