Apple प्लैटफ़ॉर्म पर Cloud Storage का इस्तेमाल करके फ़ाइलें मिटाना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज पर, Cloud Storage for Firebase SDK टूल का इस्तेमाल करके, Cloud Storage बकेट में अपलोड की गई फ़ाइलों को मिटाने का तरीका बताया गया है.
कोई फ़ाइल मिटाना
किसी फ़ाइल को मिटाने के लिए, पहले उस फ़ाइल का एक रेफ़रंस बनाएं. इसके बाद, उस रेफ़रंस पर deleteWithCompletion: वाले तरीके को कॉल करें.
Swift
// Create a reference to the file to deleteletdesertRef=storageRef.child("desert.jpg")do{// Delete the filetryawaitdesertRef.delete()}catch{// ...}
Objective-C
// Create a reference to the file to deleteFIRStorageReference*desertRef=[storageRefchild:@"images/desert.jpg"];// Delete the file[desertRefdeleteWithCompletion:^(NSError*error){if(error!=nil){// Uh-oh, an error occurred!}else{// File deleted successfully}}];
गड़बड़ी ठीक करना
फ़ाइलें मिटाते समय गड़बड़ियां होने की कई वजहें हो सकती हैं. जैसे, फ़ाइल का मौजूद न होना या उपयोगकर्ता के पास फ़ाइल मिटाने की अनुमति न होना. गड़बड़ियों के बारे में ज़्यादा जानने के लिए, गड़बड़ियों को ठीक करना लेख पढ़ें.
[[["समझने में आसान है","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-11-16 (UTC) को अपडेट किया गया."],[],[]]