Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a Team 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.
See: Drive API Reference for drive.files.delete
.
Synopsis
- type FilesDeleteResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))
- filesDelete :: Text -> FilesDelete
- data FilesDelete
- fdFileId :: Lens' FilesDelete Text
- fdSupportsTeamDrives :: Lens' FilesDelete Bool
REST Resource
type FilesDeleteResource = "drive" :> ("v3" :> ("files" :> (Capture "fileId" Text :> (QueryParam "supportsTeamDrives" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))) Source #
A resource alias for drive.files.delete
method which the
FilesDelete
request conforms to.
Creating a Request
:: Text | |
-> FilesDelete |
Creates a value of FilesDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FilesDelete Source #
Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a Team 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.
See: filesDelete
smart constructor.
Instances
Request Lenses
fdSupportsTeamDrives :: Lens' FilesDelete Bool Source #
Whether the requesting application supports Team Drives.