public void delete(Object changedObject){
        HashMap<String, String> map;

        String table = changedObject.getClass().getSimpleName();

        switch(table){
            case "User":
                User user = (User) changedObject;

                map = new HashMap<>(); map.put("username", user.getUsername());

                mySQLQuery.delete(table, map);
                break;
            case "Group":
                Group group = (Group) changedObject;

                map = new HashMap<>(); map.put("groupID", String.valueOf(group.getGroupID()));

                mySQLQuery.delete(table, map);
                break;
            case "Room":
                Room room = (Room) changedObject;

                map = new HashMap<>(); map.put("roomNumber", String.valueOf(room.getRoomNumber()));

                mySQLQuery.delete(table, map);
                break;
            case "Meeting":
                Meeting meeting = (Meeting) changedObject;

                map = new HashMap<>(); map.put("meetingID", String.valueOf(meeting.getMeetingID()));

                mySQLQuery.delete(table, map);
                break;
            case "ExternalUser":
                ExternalUser externalUser = (ExternalUser) changedObject;

                map = new HashMap<>(); map.put("email", String.valueOf(externalUser.getEmail())); map.put("meetingID", String.valueOf(externalUser.getMeetingID()));

                mySQLQuery.delete(table, map);
                break;
            case "GroupMembership":
                GroupMembership groupMembership = (GroupMembership) changedObject;

                map = new HashMap<>(); map.put("username", String.valueOf(groupMembership.getUsername())); map.put("groupID", String.valueOf(groupMembership.getGroupID()));

                mySQLQuery.delete(table, map);
                break;
            case "MeetingInvite":
                MeetingInvite meetingInvite = (MeetingInvite) changedObject;

                map = new HashMap<>(); map.put("meetingID", String.valueOf(meetingInvite.getMeetingID())); map.put("username", String.valueOf(meetingInvite.getUsername()));
                mySQLQuery.delete(table, map);
                break;
            case "MeetingAdmin":
                MeetingAdmin meetingAdmin = (MeetingAdmin) changedObject;

                map = new HashMap<>(); map.put("meetingID", String.valueOf(meetingAdmin.getMeetingID())); map.put("username", String.valueOf(meetingAdmin.getUsername()));

                mySQLQuery.delete(table, map);
                break;
            default:
                break;
        }
    }