If I delete a Drive folder which contains a file that has multiple parents, does the file still get deleted?












0















The question explains everything. But again, I need to know if it is safe to delete a folder (which contains hundreds of important files) that contains many files belonging to multiple parents (folders). Will deleting one folder delete the related files from all folders that reference the files?










share|improve this question





























    0















    The question explains everything. But again, I need to know if it is safe to delete a folder (which contains hundreds of important files) that contains many files belonging to multiple parents (folders). Will deleting one folder delete the related files from all folders that reference the files?










    share|improve this question



























      0












      0








      0








      The question explains everything. But again, I need to know if it is safe to delete a folder (which contains hundreds of important files) that contains many files belonging to multiple parents (folders). Will deleting one folder delete the related files from all folders that reference the files?










      share|improve this question
















      The question explains everything. But again, I need to know if it is safe to delete a folder (which contains hundreds of important files) that contains many files belonging to multiple parents (folders). Will deleting one folder delete the related files from all folders that reference the files?







      google-api google-drive-sdk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 16 '18 at 7:34









      DaImTo

      46.5k1166246




      46.5k1166246










      asked Nov 16 '18 at 6:15









      LeBrown JonesLeBrown Jones

      343213




      343213
























          1 Answer
          1






          active

          oldest

          votes


















          0














          The easiest way to find out things like this is to test them we can do it using APis exploerer



          Setup test



          create new folder



          POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

          {
          "mimeType": "application/vnd.google-application/vnd.google-application/vnd.google-apps.folder",
          "name": "TestDeleteFolder1"
          }


          New folder id is 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX



          Create a new file in that folder



          POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

          {
          "mimeType": "application/vnd.google-apps.document",
          "name": "TestDeleteFileOne",
          "parents": [
          "181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX"
          ]
          }


          Gave me a folder on my google drive account with one file in it.




          • Folder Id 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX

          • File in the folder Id 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w


          Delete it



          Delete the folder



          DELETE https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}


          Test results



          Try to get the folder



          GET https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}



          "File not found: 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX.",




          try to get the file



          GET https://www.googleapis.com/drive/v3/files/1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w?key={YOUR_API_KEY}



          "File not found: 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w.",




          Anwser



          If you delete a folder all of the files with in it will be deleted there will be no warning everything is just gone.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53332415%2fif-i-delete-a-drive-folder-which-contains-a-file-that-has-multiple-parents-does%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The easiest way to find out things like this is to test them we can do it using APis exploerer



            Setup test



            create new folder



            POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

            {
            "mimeType": "application/vnd.google-application/vnd.google-application/vnd.google-apps.folder",
            "name": "TestDeleteFolder1"
            }


            New folder id is 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX



            Create a new file in that folder



            POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

            {
            "mimeType": "application/vnd.google-apps.document",
            "name": "TestDeleteFileOne",
            "parents": [
            "181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX"
            ]
            }


            Gave me a folder on my google drive account with one file in it.




            • Folder Id 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX

            • File in the folder Id 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w


            Delete it



            Delete the folder



            DELETE https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}


            Test results



            Try to get the folder



            GET https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}



            "File not found: 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX.",




            try to get the file



            GET https://www.googleapis.com/drive/v3/files/1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w?key={YOUR_API_KEY}



            "File not found: 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w.",




            Anwser



            If you delete a folder all of the files with in it will be deleted there will be no warning everything is just gone.






            share|improve this answer




























              0














              The easiest way to find out things like this is to test them we can do it using APis exploerer



              Setup test



              create new folder



              POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

              {
              "mimeType": "application/vnd.google-application/vnd.google-application/vnd.google-apps.folder",
              "name": "TestDeleteFolder1"
              }


              New folder id is 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX



              Create a new file in that folder



              POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

              {
              "mimeType": "application/vnd.google-apps.document",
              "name": "TestDeleteFileOne",
              "parents": [
              "181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX"
              ]
              }


              Gave me a folder on my google drive account with one file in it.




              • Folder Id 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX

              • File in the folder Id 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w


              Delete it



              Delete the folder



              DELETE https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}


              Test results



              Try to get the folder



              GET https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}



              "File not found: 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX.",




              try to get the file



              GET https://www.googleapis.com/drive/v3/files/1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w?key={YOUR_API_KEY}



              "File not found: 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w.",




              Anwser



              If you delete a folder all of the files with in it will be deleted there will be no warning everything is just gone.






              share|improve this answer


























                0












                0








                0







                The easiest way to find out things like this is to test them we can do it using APis exploerer



                Setup test



                create new folder



                POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

                {
                "mimeType": "application/vnd.google-application/vnd.google-application/vnd.google-apps.folder",
                "name": "TestDeleteFolder1"
                }


                New folder id is 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX



                Create a new file in that folder



                POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

                {
                "mimeType": "application/vnd.google-apps.document",
                "name": "TestDeleteFileOne",
                "parents": [
                "181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX"
                ]
                }


                Gave me a folder on my google drive account with one file in it.




                • Folder Id 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX

                • File in the folder Id 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w


                Delete it



                Delete the folder



                DELETE https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}


                Test results



                Try to get the folder



                GET https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}



                "File not found: 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX.",




                try to get the file



                GET https://www.googleapis.com/drive/v3/files/1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w?key={YOUR_API_KEY}



                "File not found: 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w.",




                Anwser



                If you delete a folder all of the files with in it will be deleted there will be no warning everything is just gone.






                share|improve this answer













                The easiest way to find out things like this is to test them we can do it using APis exploerer



                Setup test



                create new folder



                POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

                {
                "mimeType": "application/vnd.google-application/vnd.google-application/vnd.google-apps.folder",
                "name": "TestDeleteFolder1"
                }


                New folder id is 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX



                Create a new file in that folder



                POST https://www.googleapis.com/drive/v3/files?fields=*&key={YOUR_API_KEY}

                {
                "mimeType": "application/vnd.google-apps.document",
                "name": "TestDeleteFileOne",
                "parents": [
                "181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX"
                ]
                }


                Gave me a folder on my google drive account with one file in it.




                • Folder Id 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX

                • File in the folder Id 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w


                Delete it



                Delete the folder



                DELETE https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}


                Test results



                Try to get the folder



                GET https://www.googleapis.com/drive/v3/files/181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX?key={YOUR_API_KEY}



                "File not found: 181vifeF0eyd5J-8lzlYqJHSM1xbhPJFX.",




                try to get the file



                GET https://www.googleapis.com/drive/v3/files/1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w?key={YOUR_API_KEY}



                "File not found: 1EEYXRLIWD1_kbX3c8yYeY8duBSE_KeCVDUFSh9Sth7w.",




                Anwser



                If you delete a folder all of the files with in it will be deleted there will be no warning everything is just gone.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 16 '18 at 7:33









                DaImToDaImTo

                46.5k1166246




                46.5k1166246
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53332415%2fif-i-delete-a-drive-folder-which-contains-a-file-that-has-multiple-parents-does%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Bressuire

                    Vorschmack

                    Quarantine