check return of delete()