I don't understand your post clearly but if you want to delete files and or folders supplied by user in an (argument):
e.g. ./yourscript "name_of_folder_you_want_to_delete"
Note that predefined variables to access passed arguments are ($1, $2, $3 and so on..)
Take a look at this code:
find $file -name "$1"|xargs rm -R