<small id='ZXgBM'></small><noframes id='ZXgBM'>

    <i id='ZXgBM'><tr id='ZXgBM'><dt id='ZXgBM'><q id='ZXgBM'><span id='ZXgBM'><b id='ZXgBM'><form id='ZXgBM'><ins id='ZXgBM'></ins><ul id='ZXgBM'></ul><sub id='ZXgBM'></sub></form><legend id='ZXgBM'></legend><bdo id='ZXgBM'><pre id='ZXgBM'><center id='ZXgBM'></center></pre></bdo></b><th id='ZXgBM'></th></span></q></dt></tr></i><div id='ZXgBM'><tfoot id='ZXgBM'></tfoot><dl id='ZXgBM'><fieldset id='ZXgBM'></fieldset></dl></div>
      1. <legend id='ZXgBM'><style id='ZXgBM'><dir id='ZXgBM'><q id='ZXgBM'></q></dir></style></legend>

      2. <tfoot id='ZXgBM'></tfoot>
        • <bdo id='ZXgBM'></bdo><ul id='ZXgBM'></ul>

        Google Drive - 如何从代码中清空垃圾(以编程方式

        时间:2023-08-28

            <i id='pYJVi'><tr id='pYJVi'><dt id='pYJVi'><q id='pYJVi'><span id='pYJVi'><b id='pYJVi'><form id='pYJVi'><ins id='pYJVi'></ins><ul id='pYJVi'></ul><sub id='pYJVi'></sub></form><legend id='pYJVi'></legend><bdo id='pYJVi'><pre id='pYJVi'><center id='pYJVi'></center></pre></bdo></b><th id='pYJVi'></th></span></q></dt></tr></i><div id='pYJVi'><tfoot id='pYJVi'></tfoot><dl id='pYJVi'><fieldset id='pYJVi'></fieldset></dl></div>
            <tfoot id='pYJVi'></tfoot>

                  <bdo id='pYJVi'></bdo><ul id='pYJVi'></ul>
                  <legend id='pYJVi'><style id='pYJVi'><dir id='pYJVi'><q id='pYJVi'></q></dir></style></legend>
                    <tbody id='pYJVi'></tbody>

                  <small id='pYJVi'></small><noframes id='pYJVi'>

                  本文介绍了Google Drive - 如何从代码中清空垃圾(以编程方式)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  请帮助我将一个项目与 Google Drive 集成.问题是 Google Drive 的垃圾文件夹永远不会清空,因此最终由于空间不足,Google Drive 与桌面的同步停止工作.

                  Please help me to integrate a project with Google Drive. The problem is that Google Drive trash folder is never emptied, so eventually Google Drive synchronization with desktop stops working due to the lack of space.

                  我需要将垃圾箱配置为不保留已删除的文件(首选选项),或者以编程方式从 C# 代码(不太首选)或其他编程语言(最后的选项)中清空它.

                  I need either to configure the trash to not keep deleted files (preferred option) or empty it programatically from C# code (less preferred), or other programing language (last resort option) .

                  如何从代码或脚本或其他内容中清空 Google 云端硬盘回收站?

                  How do I empty Google Drive trash from code or script or whatever?

                  推荐答案

                  Google Drive API 没有公开清空垃圾箱的方法,但它有一个 delete 方法来永久删除文件,无需将它们送入垃圾箱:

                  The Google Drive API doesn't expose a method to empty the trash but it has a delete method to delete files permanently, without sending them into the trash:

                  https://developers.google.com/drive/v2/reference/文件/删除

                  您还可以通过检查 trashed 标签从垃圾箱中检索文件noreferrer">文件资源,然后对它们调用delete.

                  You can also retrieve files from trash by checking the trashed label of the Files resource and then call delete on them.

                  这篇关于Google Drive - 如何从代码中清空垃圾(以编程方式)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么我得到 System.UnauthorizedAccessException 对路径 下一篇:MVC 中的 GoogleWebAuthorizationBroker 用于 Google Drive 访

                  相关文章

                  最新文章

                  <tfoot id='sLhve'></tfoot>

                • <small id='sLhve'></small><noframes id='sLhve'>

                  • <bdo id='sLhve'></bdo><ul id='sLhve'></ul>
                • <legend id='sLhve'><style id='sLhve'><dir id='sLhve'><q id='sLhve'></q></dir></style></legend>
                  1. <i id='sLhve'><tr id='sLhve'><dt id='sLhve'><q id='sLhve'><span id='sLhve'><b id='sLhve'><form id='sLhve'><ins id='sLhve'></ins><ul id='sLhve'></ul><sub id='sLhve'></sub></form><legend id='sLhve'></legend><bdo id='sLhve'><pre id='sLhve'><center id='sLhve'></center></pre></bdo></b><th id='sLhve'></th></span></q></dt></tr></i><div id='sLhve'><tfoot id='sLhve'></tfoot><dl id='sLhve'><fieldset id='sLhve'></fieldset></dl></div>