Skip to content

[BUG] Remove-PnPFile -SiteRelativeUrl returns an error about ServerRelativePath #2134

@adambrubaker

Description

@adambrubaker

I just updated my powershell module from a very old version to 1.11.0 and I started getting this error when trying to remove any file. I don't use PnP very often so it's possible I'm missing something easy. Thanks!

Expected behavior

Successfully removing a file

Actual behavior

image
image

Steps to reproduce behavior

Remove-PnPFile -SiteRelativeUrl "$url_root/test.docx" -Force -Recycle

What is the version of the Cmdlet module you are running?

1.11.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions