problem with "xargs rm -i"

Hi,

I could not understand why the following command does not work
find . -name "foo" | xargs rm -i
but,
find . -name "foo" | xargs rm works perfectly alright.

it wont work because it is interactive it will ask you if you really want to delete it,then prompt will appear.

It is interactive and asks for user input, but before accepting user input it closes down and shows command prompt. That is why I said that it is not working.
What to do for xargs (any option flag need to be added) inorder stop and accept user input, i.e interactive xargs?

Hi,

Is it possible that I can enter the date? and on the basis of date, it will delete the files,

Because I want to delete specific date wise files and directory.created,modified and accessed no particular date

Regards

Manoj