Prepending @ won't ensure that the folder will be deleted, all it does is surpress any error messages that may occur.
You'll have to write a recursive function that will go through the directory that you want to delete and delete any files/folders underneath that directory.
As I'm sure you know, a directory has to be completely empty in order for rmdir to work.