I can’t think what you’re doing wrong. Works fine here for both delete and rename. How are you attempting to rename a file (provide precise details)? If you provide a precise step-by-step I will gladly test again.
See Justin’s answer to your post here: