Only allow delete of last import

Checks to make sure the last import only is allowed to be deleted