Delete works with custom classes