this is part of the deletion logic
rejecting if no filename