nao-pon/flysystem-google-drive

deleting files actually moves them to trash, is there a way to actually delete them completely?

Closed this issue · 3 comments

deleting files actually moves them to trash, is there a way to actually delete them completely?

@jossnaz I'll make an option to delete or into trash can be chosen.

Thanks! 👍

@jossnaz "deleteAction" was added to the option specified by the third argument when creating the adapter.

$googleDrive = new Hypweb\Flysystem\GoogleDrive\GoogleDriveAdapter(
	new \Google_Service_Drive($client), // Client service
	'root',                             // Folder ID as root ('root' or Folder ID)
	[ 'deleteAction' => 'delete' ]      // Delete action 'trash' (Into trash) or 'delete' (Permanently delete)
);