Android पर Cloud Storage से फ़ाइलें मिटाना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Cloud Storage में फ़ाइलें अपलोड करने के बाद, उन्हें मिटाया भी जा सकता है.
कोई फ़ाइल मिटाना
किसी फ़ाइल को मिटाने के लिए, पहले
रेफ़रंस बनाएं
उस फ़ाइल का. इसके बाद, उस रेफ़रंस पर delete() तरीके को कॉल करें.
Kotlin
// Create a storage reference from our appvalstorageRef=storage.reference// Create a reference to the file to deletevaldesertRef=storageRef.child("images/desert.jpg")// Delete the filedesertRef.delete().addOnSuccessListener{// File deleted successfully}.addOnFailureListener{// Uh-oh, an error occurred!}
// Create a storage reference from our appStorageReferencestorageRef=storage.getReference();// Create a reference to the file to deleteStorageReferencedesertRef=storageRef.child("images/desert.jpg");// Delete the filedesertRef.delete().addOnSuccessListener(newOnSuccessListener<Void>(){@OverridepublicvoidonSuccess(VoidaVoid){// File deleted successfully}}).addOnFailureListener(newOnFailureListener(){@OverridepublicvoidonFailure(@NonNullExceptionexception){// Uh-oh, an error occurred!}});
फ़ाइलें मिटाने पर गड़बड़ियां होने की कई वजहें हो सकती हैं. जैसे, फ़ाइल का मौजूद न होना या उपयोगकर्ता के पास चुनी गई फ़ाइल को मिटाने की अनुमति न होना. गड़बड़ियों के बारे में ज़्यादा जानकारी, दस्तावेज़ों के
गड़बड़ियां ठीक करना
सेक्शन में देखी जा सकती है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2026-04-22 (UTC) को अपडेट किया गया."],[],[]]