Revert "removed rm which might be the cause of permission denied error"

This reverts commit 12ce0af10a5b4a495ef9739d511d2c0e5d44ddff.