issue #1005 plugins' files could be deleted now, it doesn't work everyti...

...me de to permission problems, even we try to change the permissions before the delete