This error is returned by the DeletePages method from the Image Admin control. You cannot delete a page because it is being displayed by either the Thumbnail control or the Image Edit control.
Close all images that are being displayed by either the Thumbnail control or the Image Edit control and then retry your operation.