Empty trash
Name
empty_trash
Description
Empties trash [API reference]
Related Tables
Parameters
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Id |
DT_WSTR
|
nvarchar(440)
|
440 | False |
|
Kind |
DT_WSTR
|
nvarchar(200)
|
200 | False |
|
Name |
DT_WSTR
|
nvarchar(780)
|
780 | False |
|
MimeType |
DT_WSTR
|
nvarchar(650)
|
650 | False |
|
DriveId |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use Google Drive Connector in API Source component to read data or in API Destination component to read/write data:
Delete rows from Trash table using API Destination
This Endpoint belongs to Trash table, therefore you cannot work with it directly. Use this table and table-operation pair instead:

ODBC application
Use these SQL queries in your ODBC application data source:
Empty trash
SELECT * FROM empty_trash
Empty trash bin
Empties trash bin
DELETE FROM Trash
Empty trash bin for a shared drive
Empties trash bin for a specified shared drive
DELETE FROM Trash
WITH(
DriveType='drive'
,DriveId='1j0HFOP4gsoExxxxxx' --get id from select * from SharedDrives
)
empty_trash
endpoint belongs to
Trash
table(s), and can therefore be used via those table(s).
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Empty trash
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM empty_trash';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
Empty trash bin
Empties trash bin
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Trash';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
Empty trash bin for a shared drive
Empties trash bin for a specified shared drive
DECLARE @MyQuery NVARCHAR(MAX) = 'DELETE FROM Trash
WITH(
DriveType=''drive''
,DriveId=''1j0HFOP4gsoExxxxxx'' --get id from select * from SharedDrives
)';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_DRIVE_IN_GATEWAY];
empty_trash
endpoint belongs to
Trash
table(s), and can therefore be used via those table(s).