Rewrite delete beans methods

deleteImage and deleteGroup take no longer their bean in parameter.
Instead take their name (String).