I am facing issue on the below code as its not removing items properly from the current screen and please help
updatecontext({spinnersearch:true});
RemoveIf( Employee,Empid=Empid1);
If(
IsBlank(Lookup(Employee,Empid=Empid1)),
RemoveIf(Employee_Lookup,Eid=Empid1));
RemoveIf(Emp_dept_lo,Empid=Empid1);
RemoveIf(Attachments,Eid=Empid1);
ClearCollect(AttachmentID,Filter(Attached_docs,Eid=Empid1));
ForAll(AttachmentID,RemoveIf(Attached_docs,ID=AttachmentID[@ID]));
UpdateContext({Empdelete:false,spinnerLoad:false,Empid1:Blank(),vardept:false,Attachtab:false,regvisible:false,deptSearchNew:false});
Reset([@txtsearch]);UpdateContext({Spinnersearch:false})