Enable recursive deletion

and security checks