diff --git a/backend/user-service/src/utils/utils.ts b/backend/user-service/src/utils/utils.ts index f7bc06381c..447bf227b5 100644 --- a/backend/user-service/src/utils/utils.ts +++ b/backend/user-service/src/utils/utils.ts @@ -40,21 +40,3 @@ export const createFirebaseUserWithEmailAndPassword = async ( ): Promise => { return auth.createUser({ uid, email, password }); }; - -/*export const deleteFileFromFirebase = async ( - fileUrl: string -): Promise => { - return new Promise((resolve, reject) => { - const fileName = fileUrl.split('/o/')[1].split('?')[0].replace(/%2F/g, '/'); - const ref = bucket.file(fileName); - - async () => { - try { - await ref.delete(); - resolve("File deleted"); - } catch (error) { - reject(error); - } - } - }) -};*/