Changed the realtime delete logic