src/main/java/seedu/address/model/ModelManager.java
@Override
    public void delete(ModelObject obj) throws CommandException {
        // Very important: Post this event before you really delete object
        postDeleteEntityEvent(obj.getId(), modelObjectToEntityType(obj));
        getAddressBook(obj).remove(obj);
        getFilterList(obj).setPredicate(getPredicateAll(obj));
        postDataStorageChangeEvent(getReadOnlyAddressBook(obj), getEntityType(obj));
    }
/**
     * Delete an object from address book.
     */
Delete an object from address book.
Delete an object from address book .
@Override
    public void delete(ModelObject obj) throws CommandException {
        postDeleteEntityEvent(obj.getId(), modelObjectToEntityType(obj));
        getAddressBook(obj).remove(obj);
        getFilterList(obj).setPredicate(getPredicateAll(obj));
        postDataStorageChangeEvent(getReadOnlyAddressBook(obj), getEntityType(obj));
    }
@ Override public void delete ( ModelObject obj ) throws CommandException { postDeleteEntityEvent ( obj . getId ( ) , modelObjectToEntityType ( obj ) ) ; getAddressBook ( obj ) . remove ( obj ) ; getFilterList ( obj ) . setPredicate ( getPredicateAll ( obj ) ) ; postDataStorageChangeEvent ( getReadOnlyAddressBook ( obj ) , getEntityType ( obj ) ) ; }
Delete an object from address book.
Delete an object from address book .
// Very important: Post this event before you really delete object