Table of Contents

Class FilesResource.DeleteRequest

Namespace
Google.Apis.Drive.v3
Assembly
Google.Apis.Drive.v3.dll

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.

public class FilesResource.DeleteRequest : DriveBaseServiceRequest<string>
Inheritance
FilesResource.DeleteRequest
Inherited Members

Constructors

DeleteRequest(IClientService, string)

Constructs a new Delete request.

public DeleteRequest(IClientService service, string fileId)

Parameters

service IClientService
fileId string

Properties

EnforceSingleParent

Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter will only take effect if the item is not in a shared drive. If an item's last parent is deleted but the item itself is not, the item will be placed under its owner's root.

public virtual bool? EnforceSingleParent { get; set; }

Property Value

bool?

FileId

The ID of the file.

public virtual string FileId { get; }

Property Value

string

HttpMethod

Gets the HTTP method.

public override string HttpMethod { get; }

Property Value

string

MethodName

Gets the method name.

public override string MethodName { get; }

Property Value

string

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

string

SupportsAllDrives

Whether the requesting application supports both My Drives and shared drives.

public virtual bool? SupportsAllDrives { get; set; }

Property Value

bool?

SupportsTeamDrives

Deprecated use supportsAllDrives instead.

public virtual bool? SupportsTeamDrives { get; set; }

Property Value

bool?

Methods

InitParameters()

Initializes Delete parameter list.

protected override void InitParameters()