Put these lines 
```js
$(' #check-photo:checked').closest('.photo').remove();
photos_ids = [];
```
in ```.done(...``` ajax callback.