Sending specific keys when using Remote Desktop UNIX commands I would like to script the uninstallation and reinstallation of Profiles on a group of Networked Macs. In order to do this I shall use the UNIX Command part of Remote Desktop.

When sending the 

profiles -D


Command, it responds with 

Are you sure you want to delete all configuration profiles? [y/n]:


but I have no way of pressing the Y key.

Any ideas?
Checking the profiles man page, the -f flag will:

Automatically confirm any questions, or when used with -s, will retry startup profiles at each startup until successfully installed.

So, my guess is profiles -Df is what you're looking for.