def DelPass(self, params): console.out(7) confirm = input("") #Double check user wishes to delete password if(confirm == "Y" or confirm == "y"): #First check if password exists userTitle = params[0] foundIndex = File.GetPasswordTitle(userTitle, self.GetFileEncryptionKey()) if(foundIndex >= 0): #password exists, therefore can overrite state = File.DeletePassword(foundIndex, self.GetFileEncryptionKey()) if(state): console.out(45) else: console.out(46) else: #password doesn't exist console.outs([43,2])