Delete many files by executing script.

Hi , I am novice in Unix.
Kindly , try to resolve my query.
I have 3 folders. Inside these folders , I have few files respectively.
Now , Instead of deleting each file by visitng the directory.
I want to write a script which when executed all files gets deleted with that.
For ex:-
Dir - home/D1 Files - A1, A2,A3,A4,A5
Dir - home/D2 Files - B1,B2
Dir - home/D3 Files - C1,C2,C3

Now i want to write a scipt so that A1,A2,A3,B1,C1,C2 gets deleted from D1,D2,D3 by executing script file.

use the find command. here is an example, and warning below

find /home/D1 -name "A*" -exec rm {} \;

Now, even experts make mistakes with this command, and 'exec rm' can be especially dangerous, so read the man page for 'find' and review the options, and run it WITHOUT the 'exec' option first, like so:

find /home/D1 -name "A*" -print

if you get more results than you expected, you must refine the options, maybe by limiting search depth, maybe by specifying path or filename more explicitly.