def test_delete_item_base_filters(self):
        """
        REST Api: Test delete item with base filters
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        with model1_data(self.appbuilder.session, 4):
            model = (
                self.appbuilder.get_session.query(Model1)
                .filter_by(field_integer=2)
                .one_or_none()
            )

            # Try to delete a filtered item
            pk = model.id
            uri = "api/v1/model1apifiltered/{}".format(pk)
            rv = self.auth_client_delete(client, token, uri)
            self.assertEqual(rv.status_code, 404)

        REST Api: Test delete item with base filters
        
tests/test_api.py