fixed deleteRepository