Every now and then, a KMyMoney user asks why he or she cannot delete an account, category or another other object in his data set.
Well, the answer is easy: KMyMoney prevents them from destroying the integrity of their data. This means, the object may be referenced by another object in the data set and this is why KMyMoney disables the delete operation in such a case. The technical term for this is referential integrity. But what are the rules for this to happen?
Transaction, Account, Institution, Payee, Tag, Budget and friends: The following sections show for each object the ones it may be referenced by and in case such a reference exists cannot be deleted.
Account
Transaction, Schedule
Budget
-none-
Category
Transaction, Budget, Schedule
Currency
Transaction, Account, Institution, Payee, Tag, Budget, Schedule, Security
Institution
-none-
Payee
-none-
Price
-none-
Report
-none-
Schedule
-none-
Security
Transaction, Account, Institution, Payee, Tag, Budget, Schedule, Currency
Tag
-none-
Transaction
-none-
Disclaimer: the above may be incomplete or not 100% accurate.