Make cursor delete() return code work correctly.