Skip to content

New command: remove file #287

Description

@waldekmastykarz

Remove the specified file

  • command: spo file remove -w|--webUrl <webUrl> -i|--id [id] -u|--url [url] --recycle --confirm
  • webUrl: The URL of the site where the file is located
  • id: id of the file to remove
  • url: server- or site-relative URL of the file to remove
  • recycle: move the file to the recycle bin instead of permanently deleting it
  • confirm: don't prompt before removing the file
  • specify either the ID or the URL of the file to check in but not both
  • requires connection to a SharePoint site

For more information see the Remove-PnPFile cmdlet

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions