NetCmdlets 2016
NetCmdlets 2016
Questions / Feedback?

RemoteFile Parameter (Remove-CloudStorage Cmdlet)

The name of the remote file to delete.

Syntax

Remove-CloudStorage -RemoteFile string

Remarks

The RemoteFile is either an absolute file path, or a relative path based on the home path set by the server. Wildcards (*) can be used to specify multiple files, and directories can be specified as long as they are empty.

For instance:

#remove a single file from Amazon S3
Remove-CloudStorage -ServiceProvider Amazons3 -AmazonS3AccessKey $accesskey -AmazonS3SecretKey $secretkey -RemoteFile "test/delete_me.txt"

#remove all text files from a subfolder in Box
Remove-CloudStorage -ServiceProvider Box -OAuthClientId $boxid -OAuthClientSecret $boxsecret -RemoteFile "test/*.txt"

#remove a Wasabi directory/bucket (must be empty to suceed)
Remove-CloudStorage -ServiceProvider Wasabi -WasabiAccessKey $accesskey -WasabiSecretKey $secretkey -RemoteFile "myBucket"

Default Value

""

Parameter Position

1

Parameter Alias

Delete

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
NetCmdlets 2016 - Version 16.0 [Build 6801]